I made a rock paper scissors game and it kind of works. But when I do for say .rps test it still works even know its supposed to only let you do .rps rock or paper or scissors. I've included all my imports if you would like to test it out.
import discord
from discord.ext import commands, tasks
import os
import random
import asyncio
from asyncio import gather
client = commands.Bot(command_prefix=".")
@client.command()
async def rps(ctx, user_choice):
rpsGame = ['rock', 'paper', 'scissors']
if user_choice == 'rock' or 'paper' or 'scissors':
await ctx.send(f'Choice: `{user_choice}`\nBot Choice: `{random.choice(rpsGame)}`')
elif user_choice != 'rock' or 'paper' or 'scissors':
await ctx.send('**Error** This command only works with rock, paper, or scissors.')
client.run('token')