-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelpyBot.py
More file actions
64 lines (51 loc) · 2.09 KB
/
HelpyBot.py
File metadata and controls
64 lines (51 loc) · 2.09 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import discord
from discord.ext import commands
import asyncio
import sqlite3
import datetime
import sys
import os
import random
client = commands.Bot(command_prefix='h-', case_insenstive=True)
@client.event
async def on_ready():
db = sqlite3.connect('HelpyBot.db')
cursor = db.cursor()
print('Helpy Online!')
return await client.change_presence(activity=discord.Activity(type=1, name='Help Wanted Custom Night', url='https://twitch.tv/VyTV'))
client.remove_command('help')
initial_extensions = ['cogs.commands']
if __name__ == '__main__':
for extension in initial_extensions:
try:
bot.load_extension(extension)
except Exception as e:
print(f'Helpy is studying {extension}', file=sys.stderr)
for file in os.listdir('./cogs'):
if file.endswith('.py'):
client.load_extension(f'cogs.{file[:-3]}')
@client.command()
async def hi(ctx):
ping = client.latency
embed=discord.Embed(title='Henlo!', colour=discord.Colour(0xf296ff), description=f'My name is Helpy! I am developed by Vy#2021!')
embed.add_field(name=' Latency::ping_pong:', value=f'{ping}')
await ctx.message.channel.send(embed=embed)
@client.command()
async def henlo(ctx):
ping = client.latency
embed=discord.Embed(title='Henlo!', colour=discord.Colour(0xf296ff), description=f'My name is Helpy! I am developed by Vy#2021!')
embed.add_field(name=' Latency::ping_pong:', value=f'{ping}')
await ctx.message.channel.send(embed=embed)
@client.command()
async def hello(ctx):
ping = client.latency
embed=discord.Embed(title='Henlo!', colour=discord.Colour(0xf296ff), description=f'My name is Helpy! I am developed by Vy#2021!')
embed.add_field(name=' Latency :ping_pong:', value=f'{ping}')
await ctx.message.channel.send(embed=embed)
@client.command()
async def hewwo(ctx):
ping = client.latency
embed=discord.Embed(title='Hewwo! uwu', colour=discord.Colour(0xf296ff), description=f'My nameu is Hewpy uwu! I am devewoped by Vy#2021! owo')
embed.add_field(name=' Latency::ping_pong:', value=f'{ping}')
await ctx.message.channel.send(embed=embed)
client.run("")