V1.1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class Changelog(commands.Cog):
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self):
|
||||
print("Changlog.py is ready")
|
||||
|
||||
@commands.command()
|
||||
async def changelog(self, ctx):
|
||||
botmessage = str(
|
||||
"Welcome to V1.1 of Sonar, we have lots to discuss because alot has changed or got added.\n\n"+
|
||||
|
||||
"-change 1, !stats and !compare arent 2 different functions anymore but became 1 function,\n"+
|
||||
"so now you can do !stats <playername>, <playername>, <weapon>, or for those who like to write !compare this still works aswell.\n\n"+
|
||||
|
||||
"-change 2, !stats, !lb (!leaderboard) got <server> filters so now its possible to see your standing in a server.\n\n"
|
||||
|
||||
"-change 3, All currently existing commands did get an overhaul to make them less restrictive to people, so you no longer need to write wingman_elite,\n"+
|
||||
"you can now do wingman elite or elite to get the wingman elite as filter, servers do have the same principle\n\n"+
|
||||
|
||||
"-change 4, clearer error message\n\n"+
|
||||
|
||||
"-change 5, All currently existing commands did get a slash command counterpart\n\n"+
|
||||
|
||||
"Thanks for reading and goodluck increasing those stats"
|
||||
)
|
||||
await ctx.send(f"```{botmessage}```")
|
||||
|
||||
|
||||
async def setup(client):
|
||||
await client.add_cog(Changelog(client))
|
||||
+24
-15
@@ -13,30 +13,39 @@ class Help(commands.Cog):
|
||||
async def help(self, ctx, message="all"):
|
||||
botmessage = ""
|
||||
if(message == "all"):
|
||||
botmessage = str("To get further information about a command do: \n!help <command> \n" +
|
||||
botmessage = str("To get further information about a command do: \n!help <command> \n------------------- \n" +
|
||||
"The commands you can get information on are: \n" +
|
||||
"roll \n" +
|
||||
"ping \n" +
|
||||
"compare \n" +
|
||||
"stats \n" +
|
||||
"leaderboard \n"+
|
||||
"changelog : Gives all the information about the changes and updates.\n"
|
||||
"roll : Rolls a number between 1 and 100. \n" +
|
||||
"ping : Shows latency. \n" +
|
||||
"stats : Shows stats collected by ToneAPI. \n" +
|
||||
"leaderboard : Shows a leaderboard of stats. \n"+
|
||||
"slashcommands: This explains what slash commands are, if you used slash commands before this isnt usefull\n"
|
||||
"------------------- \n"
|
||||
"if this help command doesnt help you or you have suggestions for future commands, ping or dm me @lars#1029")
|
||||
elif(message == "changelog"):
|
||||
botmessage = str("!changelogs is a command that gives you all the recent changes and updates")
|
||||
elif(message == "roll"):
|
||||
botmessage = str("!roll is a command that rolls a number between 1 and 100, with a rating")
|
||||
|
||||
elif(message == "ping"):
|
||||
botmessage = str("!ping gives the latency between you and the bot")
|
||||
elif(message == "compare"):
|
||||
botmessage = str("!compare takes multiple playernames and 1 weapon to compare these players \n"+
|
||||
"Example: \n!compare iilars, legonzaur, okvdai, kraber \n!compare <playername>, <playername>, <playername>, <weaponname> \nA weapon doesnt need to be specified")
|
||||
|
||||
elif(message == "stats"):
|
||||
botmessage = str("!stats takes 1 playername and 1 weapon name to show this players stats\n"+
|
||||
"Example: \n!stats iilars, kraber \n!stats <playername>, <weaponname> \nA weapon doesnt need to be specified\n"+
|
||||
"For those wondering why the kd with a weapon doesnt match the webclient, de webclient takes kills with a weapon and deaths to that weapon and this bot takes kills with weapon and deaths while weapon is held")
|
||||
botmessage = str("!stats takes playername(s), Optional: weaponname, servername\n"+
|
||||
"Example: \n!stats iilars, kraber, fvnkhead's 3v3 \n!stats <playername>, <weaponname>, <servername> \nA weapon or server doesnt need to be specified, because if they arent there it will take overall\n"+
|
||||
"-------------------------------------------------\n"+
|
||||
"For those wondering why the kd with a weapon doesnt match the webclient,\nthe webclient takes kills with a weapon and deaths to that weapon and this bot takes kills with weapon and deaths while weapon is held")
|
||||
|
||||
elif(message == "leaderboard"):
|
||||
botmessage = str("!leaderboard is a leaderboard that can be filtered, also for the lazy between us leaderboard can be subsituted by lb, rank, ranking \n"
|
||||
+"currently the leaderboard can only be filtered by kills, deaths, max_distance, total_distance with a specified weapon \n" +
|
||||
"Example: \n!lb kills, kraber \n!lb <filter>, <weaponname> \nA weapon doesnt need to be specified")
|
||||
botmessage = str("!leaderboard is a leaderboard that can be filtered, also for the lazy between us leaderboard can be subsituted by lb, rank, ranking, board \n"
|
||||
+"currently the leaderboard can only be filtered by kills, deaths, maxd, totald, kd and avgd with a specified weapon \n" +
|
||||
"Example: \n!lb kills, kraber, fvnkhead's 3v3 \n!lb <filter>, <weaponname>, <servername> \nA weapon or server doesnt need to be specified\n"+
|
||||
"------------------------\n"+
|
||||
"maxd = max distance, avgd = average distance, kd = kill/death ratio and totald = total distance"
|
||||
)
|
||||
elif(message == "slashcommands"):
|
||||
botmessage = str("To do a slash command, hit the / key and navigate to the sonar icon after doing this you will see all the commands.\nThese commands take the same input as the normal !commands")
|
||||
else:
|
||||
botmessage = "Cant help you with this"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user