Coder Social home page Coder Social logo

jjcf89 / tabletop-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voxter256/tabletop-bot

0.0 3.0 0.0 36 KB

This is a bot for Discord written in Python made to manage tabletop game nights.

License: MIT License

Python 100.00%
python3 discord-bot

tabletop-bot's Introduction

Synopsis

This is a bot for Discord written in Python made to manage tabletop game nights. It handles the events, RSVPs, game suggestions, and helps to balance votes so everyone can have an opportunity to play what they want. It also interfaces with the XML API of https://www.boardgamegeek.com to get details such as playtime and community suggested player counts.

Code Example

!suggest https://boardgamegeek.com/boardgame/72125/eclipse Suggestions are given an ID

!start_event 2017-08-22 2000 Solar Eclipse Night

!rsvp 1
Events are given an ID which is printed

!start_voting 1 24
Allows voting on the event for [24] hours

!vote 1
Votes on a suggestion. Your power increases every time your vote loses

Motivation

I desire to create a community of people who are interested in playing tabletop games on the regular, in small and larger group settings. Specifically, this is being used for Tabletop Simulator on Steam, as most members of the server are not in the same metropolitan area as I am. This aids in me managing events in which people can attend whenever they are available.

Installation

Copy the default_options.ini and complete it using the instructions inside

This Bot currently uses SQLite and the following python plugins from pip: SQLAlchemy beautifulsoup4 boardgamegeek discord.py lxml requests

API Reference

All Users

!help
Displays the Command List

!events
Displays all future events

!rsvp [Event ID]
RSVP to a specific Event, also allows you to vote

!cancel [Event ID]
Cancels a RSVP to an Event

!suggest [suggestion]
Suggest a board game to play [suggestion] can be a game title to search, a BoardGameGeek game url, or the numerical game ID from the url

!suggestions
View all current suggestions

!vote
Vote on a game once voting has begun. If your game isn't picked, your voting power increases by one for next time, otherwise it resets to one

!power
Display your current voting power

!ping
Check if the bot is running, it responds with pong

Owner Commands

!create_event [YYYY-MM-DD] [2359] [Event Name]
Creates an event with a given date, time, and name

!cancel_event [Event ID]
Cancels the given event

!start_vote [Event ID] [Hours]
Begin voting on the selected event, ending in [Hours] hours

!end_vote
Immediately end voting

!clear_suggestions
Clear all Suggestions

!clear_messages
Delete the last 1000 messages in the channel that are not pinned

Contributors

I'm currently tracking issues here in GitHub. I encourage feature suggestions as well as code improvement! There is plenty of work that needs done

License

MIT License per LICENSE.txt

tabletop-bot's People

Contributors

jjcf89 avatar voxter256 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.