Skip to content

Commit f95180c

Browse files
authored
Merge pull request #131 from satisfactorymodding/dev
push 2.22.0 to prod yolo
2 parents 5c1a941 + 7f139d6 commit f95180c

20 files changed

+959
-717
lines changed

fred/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import asyncio
12
from os import getenv
23

34
from .fred import Bot, nextcord
45

56

6-
def main(): # this is so poetry can run a function from here properly
7+
async def main(): # this is so poetry can run a function from here properly
78
intents = nextcord.Intents.all()
89

910
client = Bot("?", help_command=None, intents=intents, chunk_guilds_at_startup=False)
10-
11-
client.run(getenv("FRED_TOKEN"))
11+
await client.start(getenv("FRED_TOKEN"), reconnect=True)
1212

1313

1414
if __name__ == "__main__":
15-
main()
15+
asyncio.run(main())

0 commit comments

Comments
 (0)