Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 7, 2023
1 parent a4b537d commit 9ee2b4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/basic_async_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import discord
from discord.ext import commands


class Bot(commands.AutoShardedBot):
def __init__(self):
super().__init__(
Expand All @@ -13,9 +14,11 @@ def __init__(self):
async def on_ready(self):
print("Ready called!")


def main():
asyncio.run(start_bot_session())


async def start_bot_session():
async with Bot() as bot:
# NOTE:
Expand All @@ -28,5 +31,6 @@ async def hello(ctx: discord.ApplicationContext):

await bot.start("TOKEN")


if __name__ == "__main__":
main()

0 comments on commit 9ee2b4f

Please sign in to comment.