Giter Club home page Giter Club logo

fate_dice_bot's Introduction

FATE_Dice_Bot

For READ ME file on how to use the bot's telegram functions, read the FATE Dice Bot's Telegram Bot ReadMe

Telegram Bot that is used to play FATE-based RPGs

  • Bot location: @fate_dice_bot
  • Bot currently not hosted

This bot uses the python-telegram-bot package to interface with telegram.

see: https://github.com/python-telegram-bot/python-telegram-bot

Code includes:

  • /start command -- Initializes bot
  • /roll command -- rolls 4 FATE dice and returns a schematic diagram as well as a number. Command can be modified to roll any positive number of dice ± a modifier
  • /help command -- an in-Telegram abbreviated help manual

Intended future edits:

  • Character creation sheets from FATE: Accelerated

Using this code: This code is currently written as a python script and intended for use with python 3.6. To use this code, first download and install the python-telegram-bot module for python 3:

$ pip install python-telegram-bot --upgrade

then download this script and edit line 23, inserting the authorization token given to you by Telegram see: https://core.telegram.org/bots#6-botfather for more info on tokens

run this script from within iPython using the %run "/REPLACE/THIS/WITH/THE/PATH/TO/SCRIPT" command

The bot will begin running. To stop communication with the bot, either use the updater.stop() command or terminate your instance of python.

fate_dice_bot's People

Contributors

blueearotter avatar

Watchers

James Cloos 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.