-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
28 lines (22 loc) · 926 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
import ClientConfig, B
import discord, os, asyncio
bot = ClientConfig.bot
async def status_task():
while True:
await bot.change_presence(status=discord.Status.idle, activity=discord.Activity(type=discord.ActivityType.watching, name=f"{len(bot.guilds)} servers!"))
await asyncio.sleep(10)
await bot.change_presence(status=discord.Status.idle, activity=discord.Activity(type=discord.ActivityType.watching, name=f"ka!help"))
await asyncio.sleep(10)
@bot.listen()
async def on_ready():
print("Bot is Ready")
print(f"Logged in as {bot.user}")
print(f"Id: {bot.user.id}")
await status_task()
@bot.command()
async def help2(ctx):
embed = discord.Embed(title = "Hi! My name is Kaylee!")
embed.add_field(name = "Kawaii...", value = "``ka!kawaii_random <text>``")
embed.set_footer(text = "Kaylee is the kawaii bot made by JDJG Inc. Official#3493 and Shadi#0879")
B.b()
bot.run(os.environ["TOKEN"])