diff options
| author | 2020-05-19 00:33:00 -0400 | |
|---|---|---|
| committer | 2020-05-19 00:33:00 -0400 | |
| commit | 9f0e0298d5d4fce750dc1645ff55478856481616 (patch) | |
| tree | c127ae89ac775fc5b4db0c54ced4e1e6d2aa540a | |
| parent | Update halloweenify error message to make it more readable and restructure th... (diff) | |
| parent | Merge pull request #406 from DuckMasterAl/patch-1 (diff) | |
Merge branch 'master' into boo-fix
| -rw-r--r-- | bot/__init__.py | 6 | ||||
| -rw-r--r-- | bot/bot.py | 5 | ||||
| -rw-r--r-- | bot/exts/evergreen/snakes/snakes_cog.py | 8 | 
3 files changed, 15 insertions, 4 deletions
| diff --git a/bot/__init__.py b/bot/__init__.py index 4729e50c..6976e089 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,3 +1,4 @@ +import asyncio  import logging  import logging.handlers  import os @@ -63,3 +64,8 @@ logging.basicConfig(      handlers=[console_handler, file_handler]  )  logging.getLogger().info('Logging initialization complete') + + +# On Windows, the selector event loop is required for aiodns. +if os.name == "nt": +    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) @@ -203,4 +203,7 @@ class SeasonalBot(commands.Bot):          await self._guild_available.wait() -bot = SeasonalBot(command_prefix=Client.prefix) +bot = SeasonalBot( +    command_prefix=Client.prefix, +    activity=discord.Game(name=f"Commands: {Client.prefix}help"), +) diff --git a/bot/exts/evergreen/snakes/snakes_cog.py b/bot/exts/evergreen/snakes/snakes_cog.py index 36c176ce..b3896fcd 100644 --- a/bot/exts/evergreen/snakes/snakes_cog.py +++ b/bot/exts/evergreen/snakes/snakes_cog.py @@ -945,13 +945,15 @@ class Snakes(Cog):              title="About the snake cog",              description=(                  "The features in this cog were created by members of the community " -                "during our first ever [code jam event](https://gitlab.com/discord-python/code-jams/code-jam-1). \n\n" +                "during our first ever " +                "[code jam event](https://pythondiscord.com/pages/code-jams/code-jam-1-snakes-bot/). \n\n"                  "The event saw over 50 participants, who competed to write a discord bot cog with a snake theme over "                  "48 hours. The staff then selected the best features from all the best teams, and made modifications "                  "to ensure they would all work together before integrating them into the community bot.\n\n"                  "It was a tight race, but in the end, <@!104749643715387392> and <@!303940835005825024> " -                "walked away as grand champions. Make sure you check out `!snakes sal`, `!snakes draw` " -                "and `!snakes hatch` to see what they came up with." +                f"walked away as grand champions. Make sure you check out `{ctx.prefix}snakes sal`," +                f"`{ctx.prefix}snakes draw` and `{ctx.prefix}snakes hatch` " +                "to see what they came up with."              )          ) | 
