Skip to content

Commit

Permalink
Final commit for v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarmash committed Dec 2, 2023
1 parent 4154c75 commit 4fafab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions bot.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
title R4Bot
pip install -r requirements.txt
python main.py
6 changes: 2 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4fafab0

Please sign in to comment.