now it is working brh
This commit is contained in:
parent
6e75260378
commit
2d181070cc
@ -48,7 +48,6 @@ async def word_counter(message): #counts words in word list
|
|||||||
#
|
#
|
||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
async def count_reader(message): #count command returns message with counts of certain word of all users
|
async def count_reader(message): #count command returns message with counts of certain word of all users
|
||||||
message = message.message
|
|
||||||
obsah = message.content.lower().split(' ')
|
obsah = message.content.lower().split(' ')
|
||||||
files = []
|
files = []
|
||||||
user_counts = []
|
user_counts = []
|
||||||
@ -172,15 +171,17 @@ async def scprove_command(message): #scientists prove that... sc
|
|||||||
#
|
#
|
||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
async def help_command(message): #help script
|
async def help_command(message): #help script
|
||||||
embed = discord.Embed(title = "susbot" ,description = "Here is list of my commands and functions", colour=discord.Colour.red)
|
embed1 = discord.Embed(title = "__Commands__" ,description = None, colour=discord.Colour.red())
|
||||||
embed.set_author(name=client.user)
|
embed1.set_author(name=client.user.name)
|
||||||
embed.add_field(name="Commands", inline = False)
|
embed1.add_field(name="~help", value="-- Command that will show you this list", inline = False)
|
||||||
embed.add_field(name="~help", value="Command that will show you this list", inline = True)
|
embed1.add_field(name="~etime", value="-- Command that will tell you the time :)", inline = False)
|
||||||
embed.add_field(name="~etime", value="Command that will tell you the time :)", inline = True)
|
embed1.add_field(name="~scprove", value="-- Scientist will prove you anything: ~scprove <text here>", inline = False)
|
||||||
embed.add_field(name="~scprove", value="Scientist will prove you anything: ~scprove <text here>", inline = True)
|
embed1.add_field(name="~primenum", value="-- Bot will tell you if number is a prime number", inline = False)
|
||||||
embed.add_field(name="~primenum", value="Bot will tell you if number is a prime number", inline = True)
|
embed1.add_field(name="~count", value="-- Ask for word count of users: ~count <word>", inline = False)
|
||||||
embed.add_field(name="~count", value="Ask for word count of users: ~count <word>", inline = True)
|
|
||||||
await message.channel.send("ahoj")
|
embed2 = discord.Embed(title = "__Functions__" ,description = None, colour=discord.Colour.red())
|
||||||
|
embed.addfield(name="")
|
||||||
|
await message.channel.send(embed=embed1)
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -251,17 +252,31 @@ async def on_message(message):
|
|||||||
else:
|
else:
|
||||||
|
|
||||||
await greetings_function(message)
|
await greetings_function(message)
|
||||||
|
|
||||||
await sus_function(message)
|
await sus_function(message)
|
||||||
|
|
||||||
await word_counter(message)
|
await word_counter(message)
|
||||||
|
|
||||||
|
await client.process_commands(message)
|
||||||
|
|
||||||
|
|
||||||
@client.command()
|
@client.command()
|
||||||
async def count(ctx):
|
async def count(ctx):
|
||||||
await count_reader(ctx)
|
await count_reader(ctx.message)
|
||||||
|
|
||||||
|
@client.command()
|
||||||
|
async def pomoc(ctx):
|
||||||
|
await (help_command(ctx.message))
|
||||||
|
|
||||||
|
@client.command()
|
||||||
|
async def etime(ctx):
|
||||||
|
await etime_command(ctx.message)
|
||||||
|
|
||||||
|
@client.command()
|
||||||
|
async def primenum(ctx):
|
||||||
|
await primenum_command(ctx.message)
|
||||||
|
|
||||||
|
@client.command()
|
||||||
|
async def scprove(ctx):
|
||||||
|
await scprove_command(ctx.message)
|
||||||
|
|
||||||
TOKEN = open("../sus_bot_token.txt", 'r').read()
|
TOKEN = open("../sus_bot_token.txt", 'r').read()
|
||||||
client.run(TOKEN)
|
client.run(TOKEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user