diff --git a/source/bot.py b/source/bot.py index e69de29..17680e2 100644 --- a/source/bot.py +++ b/source/bot.py @@ -0,0 +1,20 @@ +import discord +import gitlab + +gl = gitlab.Gitlab(url='https://gitlab.megu.one', private_token='glpat-FsbtfebnSiw1SJ8foYpu') + +intents = discord.Intents.default() +intents.message_content = True + +client = discord.Client(intents=intents) + +@client.event +async def on_message(message): + if message.author == client.user: + return + + if message.content.startswith('/issue'): + await message.channel.send(3 + 6) + + +client.run("MTA5MjQ3ODUzMTIyNjgzNjk5NA.GKB56y.LpYtwlRcUX6R2ZWe_HAZp6bAEUEBYDfMbHmX3A") \ No newline at end of file diff --git a/source/requirements.txt b/source/requirements.txt new file mode 100644 index 0000000..55ac164 --- /dev/null +++ b/source/requirements.txt @@ -0,0 +1,2 @@ +discord.py +python-gitlab \ No newline at end of file