Skip to main content

This library provides bunch of games that can be played on discord.

Project description

Tic Tac Toe

Example

import discord
from discord.ext.games import TicTacToe
from discord.ext import commands

bot = commands.Bot("!")


@bot.event
async def on_ready():
    print("Bot is Ready!")


@bot.command()
async def ttt(ctx, member: discord.Member):
    await TicTacToe(ctx, [ctx.author, member], config={
        'down_right': 675624269073481749,
        'x':536043344569303041,
    }).start()


bot.run("")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-ext-games-1.1.6.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

discord_ext_games-1.1.6-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page