Update main.py
This commit is contained in:
parent
baa01927b7
commit
0b0107840a
8
main.py
8
main.py
|
@ -2,7 +2,7 @@ from webserver import keep_alive
|
||||||
import os
|
import os
|
||||||
import nextcord
|
import nextcord
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
import datetime
|
import time
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
@ -11,14 +11,12 @@ bot = commands.Bot(command_prefix=PREFIX, description='Hi')
|
||||||
bot.remove_command('help')
|
bot.remove_command('help')
|
||||||
|
|
||||||
version = "Bot v1.4"
|
version = "Bot v1.4"
|
||||||
|
ctime = time.strftime("Today is %X %x", time.localtime())
|
||||||
offset = datetime.timezone(datetime.timedelta(hours=3))
|
|
||||||
ctime = datetime.datetime.now(offset)
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
print(f"Bot logged as {bot.user} | {version}")
|
print(f"Bot logged as {bot.user} | {version}")
|
||||||
print(f"Текущее время: {ctime}")
|
print(f"{ctime}")
|
||||||
await bot.change_presence(status=nextcord.Status.online, activity=nextcord.Game('$help'))
|
await bot.change_presence(status=nextcord.Status.online, activity=nextcord.Game('$help'))
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
|
|
Loading…
Reference in New Issue