Дал начало началу
This commit is contained in:
parent
2f9d6c5759
commit
1ee36ad4f8
2 changed files with 22 additions and 0 deletions
|
@ -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")
|
2
source/requirements.txt
Normal file
2
source/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
discord.py
|
||||
python-gitlab
|
Loading…
Add table
Reference in a new issue