Community created modules/plugins for Assistant. All the modules here are licensed under GPLv3.
from assistant import command
class FunCommands:
def __init__(self, assistant):
self.assistant = assistant
@command(description="A sample command to demonstrate modules.")
async def test_state(self, message):
await self.assistant.send_message(message.channel, "This is from a downloaded module.")
def load(assistant):
assistant.add_module(FunCommands(assistant))
- Fork this repository.
- Create a module. Be sure to place your module in the modules directory. Once done, push it to the forked repository.
- Edit the
assistant-manifest.json
file and add an entry to your module. Example entry:
{
"name": "Module_Name",
"version": "Major.Minor",
"description": "A short description.",
"path": "realtive path to your module from root.",
"author": "your name"
}
- Send a Pull Request.
- Documentation: http://assistant.readthedocs.io/en/latest/ (mainly the API reference)
Copyright (C) 2017 Jewel Mahanta
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.