diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a6735e5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.analysis.typeCheckingMode": "off" +} \ No newline at end of file diff --git a/Acronymbot.py b/Acronymbot.py index 2e04eb6..4c4fcd6 100644 --- a/Acronymbot.py +++ b/Acronymbot.py @@ -3,6 +3,7 @@ import sqlite3 from discord import app_commands from BlackJack import BlackJack from Calculator import Calculator +from Gamepicker import pick_game botIntents = discord.Intents.all() @@ -113,6 +114,17 @@ async def calculator(interaction: discord.Interaction): calculator = Calculator() await interaction.followup.send(content="`" + " " * calculator.MAXIMUMBARSIZE + "0`", view=calculator) + +""" +#### Game Picker #### +""" +@tree.command(description="Pick a game") +async def gimmegame(interaction: discord.Interaction): + + game = pick_game() + await interaction.response.send_message(game) + + """ #### Fin #### """ diff --git a/Gamepicker.py b/Gamepicker.py new file mode 100644 index 0000000..104efa9 --- /dev/null +++ b/Gamepicker.py @@ -0,0 +1,23 @@ +import discord +import random + +# Temporary List +games = ["Left 4 Dead 2", + "Aragami", + "Astroneer", + "Factorio", + "Borderlands", + "Stardew Valley", + "Viscera Cleanup Detail", + "SCP"] + +def pick_game(): + + randomIndex = random.randrange(0, len(games)) + coinFlip = random.randrange(0, 2) + if coinFlip: + + return "Valorant" + else: + + return games[randomIndex] diff --git a/__pycache__/Ledger.cpython-310.pyc b/__pycache__/Ledger.cpython-310.pyc index 6d254ba..7f10395 100644 Binary files a/__pycache__/Ledger.cpython-310.pyc and b/__pycache__/Ledger.cpython-310.pyc differ