Compare commits
No commits in common. "485168d13f1489dd9baec1ab0672c7a6c796a5e9" and "6eeea1343f73fca727a1f4f8f8af508cd2327b42" have entirely different histories.
485168d13f
...
6eeea1343f
3 changed files with 3 additions and 12 deletions
|
@ -3,17 +3,13 @@ import logging
|
|||
import discord
|
||||
|
||||
from . import post, verein
|
||||
from .config import CONFIG
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class LenaverseBot(discord.Client):
|
||||
def __init__(self) -> None:
|
||||
super().__init__(
|
||||
intents=discord.Intents.default(),
|
||||
activity=discord.CustomActivity(name=CONFIG.status),
|
||||
)
|
||||
super().__init__(intents=discord.Intents.default())
|
||||
|
||||
self.tree = discord.app_commands.CommandTree(self)
|
||||
commands = post.COMMANDS + verein.COMMANDS
|
||||
|
@ -25,9 +21,5 @@ class LenaverseBot(discord.Client):
|
|||
_logger.info("Commands synced")
|
||||
|
||||
async def on_ready(self) -> None:
|
||||
await self.wait_until_ready()
|
||||
|
||||
if self.user is None:
|
||||
return None
|
||||
|
||||
assert self.user is not None
|
||||
_logger.info(f"{self.user.name} has connected to Discord!")
|
||||
|
|
|
@ -73,7 +73,6 @@ class Config(BaseModel):
|
|||
discord_token: str
|
||||
command_prefix: str
|
||||
command_failed: str
|
||||
status: str
|
||||
|
||||
post: Post
|
||||
ev_info: ClubInfo
|
||||
|
|
|
@ -3,7 +3,7 @@ authors = ["Jörn-Michael Miehe <joern-michael.miehe@lenaisten.de>"]
|
|||
description = ""
|
||||
name = "lenaverse_bot"
|
||||
readme = "README.md"
|
||||
version = "0.2.0"
|
||||
version = "0.1.0"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
aiohttp = {extras = ["speedups"], version = "^3.9.0"}
|
||||
|
|
Loading…
Reference in a new issue