Skip to content

Commit

Permalink
Add discord support
Browse files Browse the repository at this point in the history
  • Loading branch information
TLNBS2405 committed Nov 21, 2023
1 parent be12068 commit fcc0df0
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 83 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
beautifulsoup4==4.11.1
discord.py==0.16.12
discord.py==2.3.2
pymediawiki==0.7.3
Requests==2.31.0
10 changes: 10 additions & 0 deletions src/dc/connector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import discord
from discord import app_commands


class Discord_Connector(discord.Client):
def __init__(self, *, intents: discord.Intents):
super().__init__(intents=intents)
self.tree = app_commands.CommandTree(self)
async def on_ready(self):
print('Logged on as', self.user)
Loading

0 comments on commit fcc0df0

Please sign in to comment.