Code Monkey home page Code Monkey logo

alberlc / multibot Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 528 KB

Platform agnostic high-level bot infrastructure. Develop one bot and you will have three: one for Discord, another one for Telegram and another one for Twitch. All bots use the same objects and logic. For now there are adapters for three platforms but more may be added in the future.

License: MIT License

Python 100.00%
bot bot-framework bots discord python telegram twitch

multibot's People

Contributors

alberlc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

multibot's Issues

Idea: Listener class & use Dynaconf

Hi,
I'm very interested by your approach. Not sure if you have look at Dynaconf for settings like token, web hook and co.
I'm have started to use it to simplify my bot code and I'm looking something like yours for multibot support (my tool so I have the following parameters that I can reuse across discord, telegram and matrix initiated bot for the same code:

host = "0.0.0.0"
port = 8080

bot_prefix = "/"
bot_command_help = "help"
bot_command_bal = "bal"
bot_command_pos = "pos"
bot_command_trading = "trading"
bot_command_restart = "restart"
bot_command_quote = "q"


bot_token = ""
bot_channel_id = ""

telethon_api_id = ''
telethon_api_hash = ''

matrix_hostname = ""
matrix_user = ""
matrix_pass = ""

discord_webhook_id = ""
discord_webhook_token = ""

Ideally I searching for a common listener as I use apprise to send data back to the user.

something like
import multibot

bot = multibot(DISCORD_BOT_TOKEN) or
bot = multibot (api_id=['TELEGRAM_API_ID'], api_hash=['TELEGRAM_API_HASH'], bot_token=['TELEGRAM_BOT_TOKEN'], channel_id)

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.