fixed the bad indentation in start command

This commit is contained in:
YashKandalkar 2018-06-12 21:58:39 +05:30
parent 210acde293
commit 1fbcdcb6a9

View File

@ -3,6 +3,7 @@
from discord.ext import commands from discord.ext import commands
import discord import discord
import asyncio
class BasicCommands: class BasicCommands:
def __init__(self, bot): def __init__(self, bot):
@ -29,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") agree = ("yes", "yep", "yesn't", "ya", "ye")
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 :)")
@ -37,18 +38,26 @@ class BasicCommands:
if msg.content.lower() in agree: if msg.content.lower() in agree:
async with ctx.typing(): async with ctx.typing():
await ctx.send("Alrighty-Roo...") await ctx.send("Alrighty-Roo...")
await ctx.send(f"""To start making your bot from scratch, you first need to head over to {channel_list['channel-1']}
(Regardless of the language you're gonna use).""") await ctx.send(f"To start making your bot from scratch, you first need to head over to {channel_list['channel-1']}"
await ctx.send(f"""After you have a bot account, you can either continue with {channel_list['d.py-rewrite-start']} " (Regardless of the language you're gonna use).")
if you want to make a bot in discord.py rewrite __or__ go to {channel_list['js-klasa-start']} or
{channel_list['d.js']} for making a bot in JavaScript""") await asyncio.sleep(0.5)
await ctx.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"{channel_list['d.js']} for making a bot in JavaScript.")
await ctx.send("...Read all the tutorials and still need help? You have two ways to get help.") await ctx.send("...Read all the tutorials and still need help? You have two ways to get help.")
await ctx.send(f"""**Method-1**\nThis is the best method of getting help. You help yourself.\n await asyncio.sleep(1.5)
To do so, head over to a bots dedicated channel (either {bots_channels[0]} or {bots_channels[1]}) await ctx.send("**Method-1**\nThis is the best method of getting help. You help yourself.\n"
and type `?rtfm rewrite thing_you_want_help_with`.\nThis will trigger the bot R.Danny Bot and will f"To do so, head over to a bots dedicated channel (either {bots_channels[0]} or {bots_channels[1]})"
give you links on your query on the official discord.py rewrite docs. *PS: Let the page completely load*""") " and type `?rtfm rewrite thing_you_want_help_with`.\nThis will trigger the bot R.Danny Bot and will"
await ctx.send(f"""**Method-2**\nIf you haven't found anything useful with Method-1, feel free to ask your question "give you links on your query on the official discord.py rewrite docs. *PS: Let the page completely load*")
in any of the related help channels. ({', '.join(help_channels)})\nMay the force be with you!!""")
await asyncio.sleep(5)
await ctx.send("**Method-2**\nIf you haven't found anything useful with Method-1, feel free to ask your question "
f"in any of the related help channels. ({', '.join(help_channels)})\nMay the force be with you!!")
else: else:
return await ctx.send("Session terminated. You can run this command again whenever you want.") return await ctx.send("Session terminated. You can run this command again whenever you want.")