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 # muzovkantV2
### shitty (half-)vibecoded discord bot ### shitty (half-)vibecoded discord bot
## overall ## 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 ## installation
1. clone the repo 1. clone the repo
@@ -13,13 +13,12 @@ cd muzovkantv2
```bash ```bash
pip install -r requirements.txt 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:* *it should look something like this:*
``` ```
DISCORD_TOKEN=abc123abc 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 ## usage
the bot is running when the main.py script is running. the bot is running when the main.py script is running.
@@ -46,10 +45,8 @@ sudo systemctl restart muzovkantv2
``` ```
## contacting ## 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. 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) ![yo](readme/pic.jpg)

View File

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

View File

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

View File

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

View File