From 366ce98a93b7fe3c730b0ba633bc633eda83ddb5 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sat, 22 May 2021 21:45:30 +0200 Subject: [PATCH] upd --- bot.py | 37 +++++++++++++++++++++++++++++++++++++ requirements.txt | 2 -- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 bot.py diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..43497d5 --- /dev/null +++ b/bot.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python3 + +import os +from dotenv import load_dotenv + +import discord + +load_dotenv() +TOKEN = os.getenv("DISCORD_TOKEN") +GUILD = os.getenv("DISCORD_GUILD") # Zocken mit Heidi + + +class QuizClient(discord.Client): + def __init__(self): + super().__init__( + status="Shortening the Way 24/7", + ) + + self.prefix = "Heidi, " + + ### Helpers ------------------------------------------------------------------------------------ + + + ### Events ------------------------------------------------------------------------------------- + + async def on_ready(self): + print(f"{self.user} (id: {self.user.id}) has connected to Discord!") + + async def on_message(self, message): + if message.author == client.user: + return + + ### Commands ----------------------------------------------------------------------------------- + + +client = QuizClient() +client.run(TOKEN) diff --git a/requirements.txt b/requirements.txt index 30bbaa3..4ec60b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,4 @@ python-dotenv rich discord.py -beautifulsoup4 -selenium pynacl