-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
31 lines (21 loc) · 797 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import discord
from discord.ext import commands
from discord import Embed, Color
from discord.ext.commands import has_permissions, MissingPermissions
from keep_alive import keep_alive
#Hide Secrets
import os
token = os.getenv("TOKEN")
client = commands.Bot(command_prefix="%", description="Learn Thunder Breathing", case_insensitive=True, help_command=None)
for filename in os.listdir(f"./cogs"):
if filename.endswith(f".py"):
client.load_extension(f"cogs.{filename[:-3]}")
@client.event
async def on_ready():
await client.change_presence(activity=discord.Game(name="雷の呼吸"))
print('I have logged in as {0.user}'.format(client))
@client.command()
async def ping(ctx):
await ctx.send(f'Pong! **{round(client.latency * 1000)} ms**!')
keep_alive()
client.run(token)