diff options
-rw-r--r-- | CONTRIBUTING.md | 2 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | bot/__main__.py | 12 | ||||
-rw-r--r-- | bot/cogs/hacktober/hacktoberstats.py | 6 | ||||
-rw-r--r-- | bot/cogs/hacktober/spookyreact.py | 4 | ||||
-rw-r--r-- | bot/cogs/template.py | 4 | ||||
-rw-r--r-- | docker/docker-compose.yml | 2 |
7 files changed, 18 insertions, 18 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 35c951d1..5c16e605 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,4 +11,4 @@ This project is a community project for the Python Discord community over at htt # Installation & Dependency Management -Hacktoberbot utilizes [Pipenv](https://pipenv.readthedocs.io/en/latest/) for installation and dependency management. For users unfamiliar with the Pipenv workflow, a [Pipenv Primer](https://github.com/discord-python/hacktoberbot/wiki/Hacktoberbot-and-Pipenv) is provided in Hactoberbot's Wiki. +Hacktoberbot utilizes [Pipenv](https://pipenv.readthedocs.io/en/latest/) for installation and dependency management. For users unfamiliar with the Pipenv workflow, a [Pipenv Primer](https://github.com/python-discord/seasonalbot/wiki/Hacktoberbot-and-Pipenv) is provided in Seasonalbot's Wiki. @@ -1,4 +1,4 @@ -# seasonal bot +# SeasonalBot A community project initially started for [Hacktoberfest 2018](https://hacktoberfest.digitalocean.com). A Discord bot for the Python Discord community which changes with the seasons, and provides useful event features. You can find our community by going to https://discord.gg/python @@ -77,9 +77,9 @@ You should get a menu like below:  #### 6. Pull Requests (PR or PRs) -Goto https://github.com/discord-python/hacktoberbot/pulls and the green New Pull Request button! +Goto https://github.com/python-discord/seasonalbot/pulls and the green New Pull Request button!  -Now you should hit `Compare across forks` then on the third dropdown select your fork (it will be `your username/hacktoberbot`) then hit Create Pull request. +Now you should hit `Compare across forks` then on the third dropdown select your fork (it will be `your username/seasonalbot`) then hit Create Pull request. 1[](https://i.imgur.com/N2X9A9v.png) Now to tell other people what your PR does 1. Title - be concise and informative diff --git a/bot/__main__.py b/bot/__main__.py index 91b6b369..a1484cbc 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -5,14 +5,14 @@ from traceback import format_exc from discord.ext import commands -HACKTOBERBOT_TOKEN = environ.get('HACKTOBERBOT_TOKEN') +SEASONALBOT_TOKEN = environ.get('SEASONALBOT_TOKEN') log = logging.getLogger() -if HACKTOBERBOT_TOKEN: - token_dl = len(HACKTOBERBOT_TOKEN) // 8 - log.info(f'Bot token loaded: {HACKTOBERBOT_TOKEN[:token_dl]}...{HACKTOBERBOT_TOKEN[-token_dl:]}') +if SEASONALBOT_TOKEN: + token_dl = len(SEASONALBOT_TOKEN) // 8 + log.info(f'Bot token loaded: {SEASONALBOT_TOKEN[:token_dl]}...{SEASONALBOT_TOKEN[-token_dl:]}') else: - log.error(f'Bot token not found: {HACKTOBERBOT_TOKEN}') + log.error(f'Bot token not found: {SEASONALBOT_TOKEN}') ghost_unicode = "\N{GHOST}" bot = commands.Bot(command_prefix=commands.when_mentioned_or(".", f"{ghost_unicode} ", ghost_unicode)) @@ -30,4 +30,4 @@ if __name__ == '__main__': except Exception as e: log.error(f'Failed to load extension {extension}: {repr(e)} {format_exc()}') -bot.run(HACKTOBERBOT_TOKEN) +bot.run(SEASONALBOT_TOKEN) diff --git a/bot/cogs/hacktober/hacktoberstats.py b/bot/cogs/hacktober/hacktoberstats.py index 0ccb41c1..0755503c 100644 --- a/bot/cogs/hacktober/hacktoberstats.py +++ b/bot/cogs/hacktober/hacktoberstats.py @@ -202,7 +202,7 @@ class Stats: For each PR: { "repo_url": str - "repo_shortname": str (e.g. "discord-python/hacktoberbot") + "repo_shortname": str (e.g. "python-discord/seasonalbot") "created_at": datetime.datetime } @@ -259,10 +259,10 @@ class Stats: """ Extract shortname from https://api.github.com/repos/* URL - e.g. "https://api.github.com/repos/discord-python/hacktoberbot" + e.g. "https://api.github.com/repos/python-discord/seasonalbot" | V - "discord-python/hacktoberbot" + "python-discord/seasonalbot" """ exp = r"https?:\/\/api.github.com\/repos\/([/\-\_\.\w]+)" return re.findall(exp, in_url)[0] diff --git a/bot/cogs/hacktober/spookyreact.py b/bot/cogs/hacktober/spookyreact.py index 9146b797..8e9e8db6 100644 --- a/bot/cogs/hacktober/spookyreact.py +++ b/bot/cogs/hacktober/spookyreact.py @@ -25,11 +25,11 @@ class SpookyReact: async def on_message(self, ctx: discord.Message): """ - A command to send the hacktoberbot github project + A command to send the seasonalbot github project Lines that begin with the bot's command prefix are ignored - Hacktoberbot's own messages are ignored + Seasonalbot's own messages are ignored """ for trigger in SPOOKY_TRIGGERS.keys(): trigger_test = re.search(SPOOKY_TRIGGERS[trigger][0], ctx.content.lower()) diff --git a/bot/cogs/template.py b/bot/cogs/template.py index aa01432c..e1b646e3 100644 --- a/bot/cogs/template.py +++ b/bot/cogs/template.py @@ -13,9 +13,9 @@ class Template: @commands.command(name='repo', aliases=['repository', 'project'], brief='A link to the repository of this bot.') async def repository(self, ctx): """ - A command to send the hacktoberbot github project + A command to send the seasonalbot github project """ - await ctx.send('https://github.com/discord-python/hacktoberbot') + await ctx.send('https://github.com/python-discord/seasonalbot') @commands.group(name='git', invoke_without_command=True, brief="A link to resources for learning Git") async def github(self, ctx): diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 1c895456..de1f4cf2 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -7,5 +7,5 @@ services: restart: always environment: - - HACKTOBERBOT_TOKEN + - SEASONALBOT_TOKEN |