diff options
-rw-r--r-- | metricity/__init__.py | 2 | ||||
-rw-r--r-- | metricity/bot.py | 6 | ||||
-rw-r--r-- | pyproject.toml | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/metricity/__init__.py b/metricity/__init__.py index 3e3d8a8..9f3d947 100644 --- a/metricity/__init__.py +++ b/metricity/__init__.py @@ -7,6 +7,8 @@ import coloredlogs from metricity.__main__ import start # noqa: F401 from metricity.config import PythonConfig +__version__ = "1.0.1" + # Set root log level logging.basicConfig(level=PythonConfig.log_level) coloredlogs.install(level=PythonConfig.log_level) diff --git a/metricity/bot.py b/metricity/bot.py index 7dc033b..ffdef0c 100644 --- a/metricity/bot.py +++ b/metricity/bot.py @@ -7,13 +7,14 @@ from typing import Any, Generator, List from asyncpg.exceptions import UniqueViolationError from discord import ( - CategoryChannel, Guild, Intents, + CategoryChannel, Game, Guild, Intents, Member, Message as DiscordMessage, RawMessageDeleteEvent, VoiceChannel ) from discord.abc import Messageable from discord.ext.commands import Bot, Context +from metricity import __version__ from metricity.config import BotConfig from metricity.database import connect from metricity.models import Category, Channel, Message, User @@ -39,7 +40,8 @@ intents = Intents( bot = Bot( command_prefix=BotConfig.command_prefix, intents=intents, - max_messages=None + max_messages=None, + activity=Game(f"Metricity {__version__}") ) sync_process_complete = asyncio.Event() diff --git a/pyproject.toml b/pyproject.toml index 9f7c8c1..6c87b01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "metricity" -version = "0.1.0" +version = "1.0.1" description = "Advanced metric collection for the Python Discord server" authors = ["Joe Banks <[email protected]>"] license = "MIT" |