cog and main.py overall refactoring, organization improvements

This commit is contained in:
2026-04-03 21:35:10 +05:00
parent 6c9a482ee7
commit e1fac8f795
5 changed files with 15 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
# muzovkantV2
### shitty (half-)vibecoded discord bot
## overall
you can use this as a base for your discord bot by writing your own [cogs](/cogs/), or as is.
you can use this as a base for your discord bot by writing your own [cogs](/cogs/), installing cogs from repositories, or as is.
## installation
1. clone the repo
@@ -13,13 +13,12 @@ cd muzovkantv2
```bash
pip install -r requirements.txt
```
3. insert your discord bot token and [thecatapi](https://thecatapi.com) token into the .env file.
3. insert your discord bot token into the .env file.
*it should look something like this:*
```
DISCORD_TOKEN=abc123abc
CAT_API_KEY=live_abc123abc
```
you can then edit the [config.py](/config.py) to your liking.
you can then edit the configs of main.py and the configs of each cog to your liking.
## usage
the bot is running when the main.py script is running.
@@ -46,10 +45,8 @@ sudo systemctl restart muzovkantv2
```
## contacting
if you have any feedback, contact me on github issues or/and discord. if you want to add any functions to this bot, make a PR.
if you have any feedback, contact me on git issues or/and discord. if you want to add any functionality to this bot, make a PR.
when submitting a bug report, make sure to attach the bot.log files. they generate automatically in root directory.
*discord: rejnronuz*
![yo](readme/pic.jpg)

View File

@@ -1,11 +1,11 @@
{
"description": "хмм даже не знаюююююю",
"description": "Shows this help message",
"usages": ["help"],
"hidden": false,
"messages": {
"upper_desc": "команды:",
"footer": "что то поломалось - пинг меня\nесли имеются предложения по улучшению, в лс или пинг",
"pfx_message": "префикс:"
"upper_desc": "Commands:",
"footer": "If something's wrong, contact the bot owner.",
"pfx_message": "Prefix:"
},
"settings": {
"command_pfx": "!",

View File

@@ -1,20 +1,20 @@
{
"description": "аптайм бота",
"description": "Bot Uptime",
"usages": ["!uptime"],
"first_seen": null,
"total_downtime": 0.0,
"last_start": null,
"labels": {
"days": ["день", "дня", "дней"],
"hours": ["час", "часа", "часов"],
"minutes": ["минуту", "минуты", "минут"],
"seconds": ["секунду", "секунды","секунд"]
"days": ["day", "days", "days"],
"hours": ["hour", "hours", "hours"],
"minutes": ["minute", "minutes", "minutes"],
"seconds": ["second", "seconds","seconds"]
},
"embed": {
"session_field": "текущая сессия",
"availability_field":"тотал аптайм"
"session_field": "Current Session",
"availability_field":"Total Uptime"
},
"settings": {
"max_units": 4,

View File

@@ -1,5 +0,0 @@
{
"first_seen": 1775231576.45808,
"total_downtime": 1324.356654882431,
"last_start": 1775232900.814735
}

View File