Skip to content

ambak/tsumego-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord tsumego-bot

go python docker

Tsumego-bot is a Discord bot that will help you improve your tsumego solving skills.

Uses sgf2image to generate images.

Usage

Available commands:
    ;tsumego                Show random tsumego. Shortcut ;t

    ;tsumego LVL            Show tsumego at level LVL

    ;level                  Show available levels. Shortcut LVL by using first character

    ;theme                  Show available themes

    ;theme name             Select your theme

    ;randomtheme            Set theme to random

    ;subscribe              Subscribe to get daily tsumego

    ;subscribe LVL          Subscribe to get daily tsumego at level LVL

    ;unsubscribe            Unsubscribe daily tsumego

    ;link OGS_USERNAME      Link your OSG account and your discord account

Example:
    ;t e                    Show elementary tsumego

    ;theme cartoon          Set theme to "cartoon"

    ;subscribe a            Subscribe to daily tsumego at advanced level
    

plot

plot

plot

plot

Create a new discord application

  • Create a new application at https://discord.com/developers/applications
  • Generate a token
  • Check "Message Content Intent"
  • Check "bot" in OAuth2 URL Generator / Scopes
  • Check "Send Messages" and "Manage Roles" in OAuth2 URL Generator / Bot Permissions
  • Click on the generated link

plot

plot

plot

Create a new OGS account

Setup

  • Paste your token into config.json
  • Paste your tsumego-bot OGS account data into config.json

Run

docker build -t tsumego-bot .

docker run -d --restart unless-stopped -v </path/to/tsumego-bot>:/data tsumego-bot

Have fun

and get stronger!

License

MIT

About

Discord tsumego-bot

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published