progdisc / awesome_bot Goto Github PK
View Code? Open in Web Editor NEWDiscord bot powered by awesomeness!
License: Apache License 2.0
Discord bot powered by awesomeness!
License: Apache License 2.0
We should have a main entry point for launching the bot and where all modules will eventually be centralized.
Setup CI on travis
What python versions do we want to support? 3.6+?
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?
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 the following features from old AB.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.