Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,38 @@
from commands import *
from guildSettings.guildSettings import *

print(f'Starting up: Skybot {version}')
print(f"Starting up: Skybot {version}")


@client.event
async def on_ready():
await client.change_presence(activity=discord.Game(f'({version}) {botInfo["statusMessage"]}'))
print('logged in as {0.user}\n\n'.format(client))
await client.change_presence(
activity=discord.Game(f'({version}) {botInfo["statusMessage"]}')
)
print("logged in as {0.user}\n\n".format(client))


@client.event
async def on_message(message):
async def on_message(message):
settings = guildSettings(message)

if message.author == client.user:
return

await settingsCommands(message, settings)
if (not settings['enableBot']):
if not settings["enableBot"]:
return
if settings['allowMessageResponses']:

if settings["allowMessageResponses"]:
await messageResponses(message)

if message.content.startswith(settings['commandChar']):
args = shlex.split(message.content.lower().replace(settings['commandChar'],''))
if message.content.startswith(settings["commandChar"]):
args = shlex.split(message.content.lower().replace(settings["commandChar"], ""))
command = args.pop(0)

await userCommands(message, command, args, settings)
if settings['allowJapeCommands']:
if settings["allowJapeCommands"]:
await japeCommands(message, command, args, settings)


client.run(config['token'])
client.run(config["token"])
161 changes: 114 additions & 47 deletions botInfo.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,116 @@
{
"currentVersion" : "0.6.1",
"githubLink" : "https://github.com/SkyKerr/SkyBot",
"profilePic" : "https://cdn.discordapp.com/attachments/958949821308366879/959661099672809482/profilePicture.png",
"description" : "A japes-based open-source discord bot built in Python",

"style" : {
"skyblue" : "0x87CEEB"
},

"jonyCube" : {
"title" : "Jony Cube",
"description" : "You have rolled the Jony Cube, and it came up as Jony.",
"color" : "0x3c2821",
"gif" : "https://github.com/jwhamilton99/jonycube/blob/7e524ab13c6fd856ef47db5387c8d601b39f7b6d/jonycube.gif?raw=true"

},

"marcos" : [
"Alcaraz!","Alessandrini!","Amelia!","Ament!","Andreolli!","Andretti!","Arment!","Asensio!","Antonio Barrera!","van Basten!","Banderas!","Belinelli!","Biagianti!","Boogers!","Borriello!","Borsato!","Brambilla!","Calliari!","Cassetti!","Castro!","Chiudinelli!","D Amore!","Dapper!","Delvecchio!","Di Vaio!","Donnarumma!","Feingold!","Ferradini!","Fu!","Antonio Garcia Blanco!","Giampaolo!","Grazzini!","Gumabao!","Hietala!","Höger!","Ilsø!","Jaggi!","Khan!","Kreuzpaintner!","Kurz!","Leonardi!","Masini!","Materazzi!","Antonio Mazzini!","Melandri!","Mengoni!","Micone!","Minnemann!","Morales!","Motta!","Paolini!","Pappa!","Parolo!","Pastors!","Pierre White!","Pigossi!","Antonio Pogioli!","Polo!","Reus!","Rojas!","Rosa!","Rossi!","Ruben!","Ruffo!","Scacchi!","Scutaro!","Siffredi!","Silva!","Simoncelli!","Simone!","Solari!","Antonio Solís!","Storari!","Streller!","Tardelli!","Thomas!","Torsiglieri!","Verratti!","Völler!","Werner!","Wilson!","Zoppo!"
],

"reactions" : {
"no" : "🚫",
"wave" : "👋",
"eyes" : "👀",
"bee" : "🐝"
},

"flippedTable" : "(╯°□°)╯︵ ┻━┻",
"unflippedTable" : "┬─┬ ノ( ゜-゜ノ)",
"tableResponses" : [
"Respect the table!",
"What did that table ever do to you?",
"If you break that table, someone will be very angry",
"Pick on a table your own size!",
"Keep your paws off of my table!"
],

"statusMessage" : "bleep bloop rawr",
"randomStatusMessages" : [
"A robot dragon made by a non-robot dragon",
"bleep bloop rawr",
"because blue is the best colour",
"stop messing around a get to work",
"Robots don't need to eat food, but if you're reading this, you probably do",
"Blue Dragon Robot"
]
"currentVersion": "0.6.1",
"githubLink": "https://github.com/SkyKerr/SkyBot",
"profilePic": "https://cdn.discordapp.com/attachments/958949821308366879/959661099672809482/profilePicture.png",
"description": "A japes-based open-source discord bot built in Python",
"style": {"skyblue": "0x87CEEB"},
"jonyCube": {
"title": "Jony Cube",
"description": "You have rolled the Jony Cube, and it came up as Jony.",
"color": "0x3c2821",
"gif": "https://github.com/jwhamilton99/jonycube/blob/7e524ab13c6fd856ef47db5387c8d601b39f7b6d/jonycube.gif?raw=true",
},
"marcos": [
"Alcaraz!",
"Alessandrini!",
"Amelia!",
"Ament!",
"Andreolli!",
"Andretti!",
"Arment!",
"Asensio!",
"Antonio Barrera!",
"van Basten!",
"Banderas!",
"Belinelli!",
"Biagianti!",
"Boogers!",
"Borriello!",
"Borsato!",
"Brambilla!",
"Calliari!",
"Cassetti!",
"Castro!",
"Chiudinelli!",
"D Amore!",
"Dapper!",
"Delvecchio!",
"Di Vaio!",
"Donnarumma!",
"Feingold!",
"Ferradini!",
"Fu!",
"Antonio Garcia Blanco!",
"Giampaolo!",
"Grazzini!",
"Gumabao!",
"Hietala!",
"Höger!",
"Ilsø!",
"Jaggi!",
"Khan!",
"Kreuzpaintner!",
"Kurz!",
"Leonardi!",
"Masini!",
"Materazzi!",
"Antonio Mazzini!",
"Melandri!",
"Mengoni!",
"Micone!",
"Minnemann!",
"Morales!",
"Motta!",
"Paolini!",
"Pappa!",
"Parolo!",
"Pastors!",
"Pierre White!",
"Pigossi!",
"Antonio Pogioli!",
"Polo!",
"Reus!",
"Rojas!",
"Rosa!",
"Rossi!",
"Ruben!",
"Ruffo!",
"Scacchi!",
"Scutaro!",
"Siffredi!",
"Silva!",
"Simoncelli!",
"Simone!",
"Solari!",
"Antonio Solís!",
"Storari!",
"Streller!",
"Tardelli!",
"Thomas!",
"Torsiglieri!",
"Verratti!",
"Völler!",
"Werner!",
"Wilson!",
"Zoppo!",
],
"reactions": {"no": "🚫", "wave": "👋", "eyes": "👀", "bee": "🐝"},
"flippedTable": "(╯°□°)╯︵ ┻━┻",
"unflippedTable": "┬─┬ ノ( ゜-゜ノ)",
"tableResponses": [
"Respect the table!",
"What did that table ever do to you?",
"If you break that table, someone will be very angry",
"Pick on a table your own size!",
"Keep your paws off of my table!",
],
"statusMessage": "bleep bloop rawr",
"randomStatusMessages": [
"A robot dragon made by a non-robot dragon",
"bleep bloop rawr",
"because blue is the best colour",
"stop messing around a get to work",
"Robots don't need to eat food, but if you're reading this, you probably do",
"Blue Dragon Robot",
],
}
Loading