From 4fafab02c735d45784f46d5ea9510c86759ca98f Mon Sep 17 00:00:00 2001 From: Andrew <62994051+Rarmash@users.noreply.github.com> Date: Sat, 2 Dec 2023 19:53:08 +0300 Subject: [PATCH] Final commit for v1.0 --- bot.bat | 1 + main.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bot.bat b/bot.bat index 0c5a5e4..b836b32 100644 --- a/bot.bat +++ b/bot.bat @@ -1,3 +1,4 @@ @echo off title R4Bot +pip install -r requirements.txt python main.py \ No newline at end of file diff --git a/main.py b/main.py index 140a1dd..6347f93 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,5 @@ import discord -import os from options import token, debugmode, version, myclient, gearsList -import os.path # Define intents for the bot to receive all available events intents = discord.Intents.all() @@ -29,13 +27,13 @@ async def on_ready(): print(f"Подключились к серверу: {guild}") print("------") - # Set bot status and activity based on debugmode + # Set bot status and activity based on debug mode if debugmode == "ON": status = discord.Status.dnd activity = discord.Activity(type=discord.ActivityType.playing, name=f"debug-режиме (v{version})") else: status = discord.Status.online - activity = discord.Activity(type=discord.ActivityType.listening, name=f"обиды членов легиона (v{version})") + activity = discord.Activity(type=discord.ActivityType.listening, name=f"обиды участников (v{version})") await bot.change_presence(status=status, activity=activity) for module_name in gearsList: