Code Monkey home page Code Monkey logo

sps-discordbot's Introduction

Stone paper scissors Discord bot

Setup steps:

a)install dependencies mentioned in requirements.txt
b)create a bot/app in the discord developer platform
c)get the token from the platform
d)add the TOKEN environment variable: $export TOKEN="YOUR TOKEN"
e)use the OAuth2 link and add add the bot to your discord server
f)run the bot.py file

Note: To change the prefix from & to any other character create a the PREFIX environment variable
    &export PREFIX='char'

Execution:

python3 bot.py

File significance

a)bot.py => contains all the command related functionality of the bot
b)sps.py => Some functions specific for stone paper scissors are kept here
c)score.xlsx => a file that records all the game scores 

Bot commands:

&sps starts a game of stone paper scissors
&sps_hist excel file of all the games played by the bot
&ping ping in ms with the bot

Please note if you have changed the prefix then use your respective character.

Its avaialable on Docker now!

https://hub.docker.com/repository/docker/raghavtinker/spsdiscordbot#

sps-discordbot's People

Contributors

raghavtinker avatar

Stargazers

Roman avatar

Watchers

 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.