Giter Club home page Giter Club logo

awesome_bot's People

Contributors

seekheart avatar

Watchers

 avatar  avatar  avatar

Forkers

toddwannacode

awesome_bot's Issues

Bot entrypoint

We should have a main entry point for launching the bot and where all modules will eventually be centralized.

Pro Command

For the pro command to what extent do we imagine users will use it for?

Originally when I wrote this it was meant to just help users find out who can help with X.
Do we want to make it simple like this or add more on top?

Bot core proposal

We want to serve a large programming community with varying competency. For this reason I would like to have a core bot built in Python using discord.py, and very quickly dispatch in a generic way into modules that can be written in any language. The onus is on the contributor to integrate whatever language they're using.

I think the core bot should look something like this:

from modules import *

commands = {
    'weather': weather.weather,
    'eval': runner.evaluate,
}

async def on_message_or_whatever():
    if command in commands:
        post_message(commands[payload]())

Where we pull in everything with a modules directory, which will contain the entry point for every command, regardless of what language it is written in. We define a dictionary or config file that maps bot string commands such as !bot weather onto a Python function that takes the contents of the message, and returns the contents of a reply message. The primary job of the core bot is to dispatch to handlers, and to avoid making this overcomplicated so that people unfamiliar with Python have little difficulty integrating their work.

Migrate old core features of AB

Migrate the following features from old AB.

  • evaluation of various programming language through repl
  • help command for various topics
  • comic links
  • pro command to help members connect with helpers in a language
  • references storage command to display reference material
  • server command to show server stats
  • stream command for streamers
  • uptime command
  • voting command
  • weather command for checking weather
  • xkcd command

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.