VERY BASIC implementation
This commit is contained in:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"python.analysis.typeCheckingMode": "off"
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ import sqlite3
|
|||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from BlackJack import BlackJack
|
from BlackJack import BlackJack
|
||||||
from Calculator import Calculator
|
from Calculator import Calculator
|
||||||
|
from Gamepicker import pick_game
|
||||||
|
|
||||||
botIntents = discord.Intents.all()
|
botIntents = discord.Intents.all()
|
||||||
|
|
||||||
@@ -113,6 +114,17 @@ async def calculator(interaction: discord.Interaction):
|
|||||||
calculator = Calculator()
|
calculator = Calculator()
|
||||||
await interaction.followup.send(content="`" + " " * calculator.MAXIMUMBARSIZE + "0`", view=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 ####
|
#### Fin ####
|
||||||
"""
|
"""
|
||||||
|
|||||||
23
Gamepicker.py
Normal file
23
Gamepicker.py
Normal file
@@ -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]
|
||||||
Binary file not shown.
Reference in New Issue
Block a user