diff --git a/APIs/Discord API/discord_bot_example.py b/APIs/Discord API/discord_bot_example.py index e00fc5d..44916a1 100644 --- a/APIs/Discord API/discord_bot_example.py +++ b/APIs/Discord API/discord_bot_example.py @@ -1,10 +1,10 @@ # make sure you have python 3.5.4 or higher # By @ofirisakov try: - import discord - from discord.ext import commands + import discord + from discord.ext import commands except ImportError: - print('Please pip install discord') + print('Please pip install discord') PREFIX = '!' @@ -14,25 +14,25 @@ @bot.event async def on_ready(): - """ - Prints on_ready. + """ + Prints on_ready. - Args: - """ - print('Logged in!') - print(f'Name: {bot.user.name}') - print(f'ID: {bot.user.id}') + Args: + """ + print('Logged in!') + print(f'Name: {bot.user.name}') + print(f'ID: {bot.user.id}') @bot.command() async def ping(ctx): - """ - Send ping message. + """ + Send ping message. - Args: - ctx: (todo): write your description - """ - await ctx.send(f'pong! `{int(bot.latency * 1000)}ms`') + Args: + ctx: (todo): write your description + """ + await ctx.send(f'pong! `{int(bot.latency * 1000)}ms`') bot.run(TOKEN)