mirror of
https://github.com/MrUnknownDE/UnknownBot.git
synced 2026-04-18 20:53:44 +02:00
UnknownBot 2k21
This commit is contained in:
23
run.py
23
run.py
@@ -1 +1,22 @@
|
||||
import logging
|
||||
import logging
|
||||
import discord
|
||||
import configparser
|
||||
import sys
|
||||
config = configparser.ConfigParser()
|
||||
config.read('bin/config.ini')
|
||||
|
||||
|
||||
|
||||
# //Logging - Müll
|
||||
class discord(discord.Client):
|
||||
async def on_ready(self):
|
||||
print('Logged on as {0}!'.format(self.user))
|
||||
|
||||
async def on_message(self, message):
|
||||
print('[LOG] Message from {0.author}: {0.content}'.format(message))
|
||||
|
||||
if message.content.startswith('{0}help'.format(config['DISCORD']['PREFIX'])):
|
||||
await message.channel.send('MOIN MEISTA')
|
||||
|
||||
client = discord()
|
||||
client.run(config["DISCORD"]["TOKEN"])
|
||||
|
||||
Reference in New Issue
Block a user