Giter Site home page Giter Site logo

mortdegana_bot's Introduction

Mel De Bot

build:

Mel de bot covers poll needs from a bot. It has 2 funcs by the moment and 1 todo:

DONE:

  • Party Poll
  • Mel gif

TODO: Spam prevention

Party Poll

Makes the question: "Who is coming?". The user may add extra text befor sending the poll. The options are:

  • "Mel!", which is an afirmative answer. By default it will add the user as "MEL".
    • More than one? Use the "Mel+1!" button.
    • Did you press it more than once? use the "Mel-1" to undo it or use the "Mel!" to go back to one.
  • "Moto!", which is a negative answer. This one also sends a motorbike crash gif from giphy.

Usage:

/poll [extra text]

TODO: ADD a GIF showing usage

Mel!

Just send a random GIF. It uses a 100 random seed with one of the following search words (decided randomly): "honey, party, smile, laugh, crash, fall, funny"

/mel

TODO: Spam prevention

In order to avoid spam by other bot commands, repeated messages will be erased. Also warns the admins of this behaviour.


Bot usage

Usage: meldebot [OPTIONS]

Options:
  -c, --config TEXT  Use config file
  -i, --init-config  Initialize config file
  -v, --verbose      Override verbosity level for the logger to INFO
  -d, --debug        Override verbosity level for the logger to DEBUG
  -t, --token TEXT   Set telegram token instead of using a config file
  --help             Show this message and exit.

Installation

  1. Clone from repo
  2. Install as a package (pip install .)

Tests

Unittests: python setup.py test

mortdegana_bot's People

Contributors

ytturi avatar gdalmau avatar francescpuig7 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.