added new responses to agree

And added async2rw to the tutorials
This commit is contained in:
Agg 2018-06-21 12:32:31 +03:00 committed by GitHub
parent 2a9c202436
commit d5194bba3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ class BasicCommands:
channel_list = {'channel-1' : self.bot.get_channel(333149949883842561).mention, channel_list = {'channel-1' : self.bot.get_channel(333149949883842561).mention,
'd.py-rewrite-start' : self.bot.get_channel(386419285439938560).mention, 'd.py-rewrite-start' : self.bot.get_channel(386419285439938560).mention,
'js-klasa-start' : self.bot.get_channel(341816240186064897).mention, 'js-klasa-start' : self.bot.get_channel(341816240186064897).mention,
'd.js' : self.bot.get_channel(436771798303113217).mention} 'async2rewrite-start' : self.bot.get_channel(392223495389577217).mention}
bots_channels = (self.bot.get_channel(339112602867204097).mention, bots_channels = (self.bot.get_channel(339112602867204097).mention,
self.bot.get_channel(411586546551095296).mention) self.bot.get_channel(411586546551095296).mention)
@ -30,7 +30,7 @@ class BasicCommands:
msg = await self.bot.wait_for('message', check = check, timeout = 15) msg = await self.bot.wait_for('message', check = check, timeout = 15)
agree = ("yes", "yep", "yesn't", "ya", "ye") agree = ("yes", "yep", "non't", "ya", "ye", "yup", "ok", "why not")
if msg is None: if msg is None:
await ctx.send("Sorry, {ctx.author.mention}, you didn't reply on time. You can run the command again when you're free :)") await ctx.send("Sorry, {ctx.author.mention}, you didn't reply on time. You can run the command again when you're free :)")
@ -46,7 +46,8 @@ class BasicCommands:
await asyncio.sleep(0.5) await asyncio.sleep(0.5)
await ctx.author.send(f"After you have a bot account, you can either continue with {channel_list['d.py-rewrite-start']}" await ctx.author.send(f"After you have a bot account, you can either continue with {channel_list['d.py-rewrite-start']}"
f"if you want to make a bot in discord.py rewrite __or__ go to {channel_list['js-klasa-start']} or " f"if you want to make a bot in discord.py rewrite __or__ go to {channel_list['js-klasa-start']} or "
f"{channel_list['d.js']} for making a bot in JavaScript.") f"{channel_list['d.js']} for making a bot in JavaScript."
f"If you already have old Discord.py async code and you want to use it with the new Rewrite versions, head to {channel_list['async2rewrite-start']}")
await ctx.author.send("...Read all the tutorials and still need help? You have two ways to get help.") await ctx.author.send("...Read all the tutorials and still need help? You have two ways to get help.")
await asyncio.sleep(1.5) await asyncio.sleep(1.5)