From 7cc006c43665fd10a5df13005eb9fd281966d4cf Mon Sep 17 00:00:00 2001
From: dnns01 <github@dnns01.de>
Date: Thu, 24 Aug 2023 23:22:15 +0200
Subject: [PATCH] Remove github integration and update requirements (#217)

Co-authored-by: dnns01 <git@dnns01.de>
---
 .env.template                        |  6 ------
 {extensions => deprecated}/github.py |  0
 fernuni_bot.py                       |  2 +-
 requirements.txt                     | 28 +++++++---------------------
 4 files changed, 8 insertions(+), 28 deletions(-)
 rename {extensions => deprecated}/github.py (100%)

diff --git a/.env.template b/.env.template
index dc2d457..76ca452 100644
--- a/.env.template
+++ b/.env.template
@@ -2,9 +2,6 @@
 DISCORD_TOKEN=<Bot Token>
 DISCORD_GUILD=<ID of Guild, this Bot should be used at>
 DISCORD_ACTIVITY=<What should be shown, Bot is playing right now>
-DISCORD_GITHUB_USER=<Github username used to create issues>
-DISCORD_GITHUB_TOKEN=<Github personal access token, can be created in Settings > Developer settings > Personal access tokens (repo scope neccessary)>
-DISCORD_GITHUB_ISSUE_URL=<URL of Github API to create Issues in a repo>
 DISCORD_PROD=<True, if running in an productive environment, otherwise False>
 
 # IDs
@@ -27,8 +24,6 @@ DISCORD_LEARNINGGROUPS_PRIVATE=<ID of the channel category for private learning
 DISCORD_LEARNINGGROUPS_ARCHIVE=<ID of the channel category for archived learning groups>
 DISCORD_LEARNINGGROUPS_REQUEST=<ID of the channel category for learning group requests made via the bot>
 DISCORD_LEARNINGGROUPS_INFO=<ID of the channel category for posting or updating information about the learning group>
-DISCORD_IDEE_CHANNEL=<ID of Channel, where bot ideas can be submitted>
-DISCORD_IDEE_EMOJI=<ID of Idee Emoji, used for reactions>
 DISCORD_CALMDOWN_ROLE=<ID of "Calmdown" role>
 DISCORD_BOTUEBUNGSPLATZ_CHANNEL=<ID of 'bot-übungsplatz' channel>
 DISCORD_ELM_STREET_CHANNEL=<ID of elm street channel>
@@ -51,5 +46,4 @@ DISCORD_ADVENT_CALENDAR_FILE=<File name for advent calendar JSON file>
 
 # Misc
 DISCORD_DATE_TIME_FORMAT=<Date and time format used for commands like %d.%m.%Y %H:%M>
-DISCORD_IDEE_REACT_QTY=<Amount of reactions to a submitted idea, neccessary to create a github issue (amount is including Boty's own reaction)>
 DISCORD_ADVENT_CALENDAR_START=<Start date and time for advent calendar. Something like "01.12.2021 00:00">
diff --git a/extensions/github.py b/deprecated/github.py
similarity index 100%
rename from extensions/github.py
rename to deprecated/github.py
diff --git a/fernuni_bot.py b/fernuni_bot.py
index 43c40a6..75b42a3 100644
--- a/fernuni_bot.py
+++ b/fernuni_bot.py
@@ -20,7 +20,7 @@ HELP_FILE = os.getenv('DISCORD_HELP_FILE')
 PIN_EMOJI = "📌"
 
 intents = Intents.all()
-extensions = ["appointments", "github", "news", "mod_mail", "voice", "welcome", "xkcd", "timer", "polls",
+extensions = ["appointments", "news", "mod_mail", "voice", "welcome", "xkcd", "timer", "polls",
               "text_commands", "links", "module_information", "learninggroups"]
 
 
diff --git a/requirements.txt b/requirements.txt
index bd6ab03..6aa7672 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,22 +1,8 @@
-aiohttp==3.8.3
-aiosignal==1.3.1
-async-timeout==4.0.2
-attrs==22.2.0
-beautifulsoup4==4.11.1
-certifi==2022.12.7
-cffi==1.15.1
-charset-normalizer==2.1.1
-discord==2.2.3
-discord.py==2.2.3
-emoji==2.2.0
-frozenlist==1.3.3
-idna==3.4
-multidict==6.0.4
-peewee==3.16.2
-pycparser==2.21
+aiohttp==3.8.5
+beautifulsoup4==4.12.2
+discord.py==2.3.2
+emoji==2.8.0
+peewee==3.16.3
 PyNaCl==1.5.0
-python-dotenv==0.21.0
-requests==2.28.2
-soupsieve==2.3.2.post1
-urllib3==1.26.14
-yarl==1.8.2
+python-dotenv==1.0.0
+requests==2.31.0
\ No newline at end of file
-- 
GitLab