Comments (3)
You have provided no useful information to debug this issue with, such as:
- what was the logging output ("nothing showed up in the console except for the basic connection info" isn't helpful, posting the console output would be much more useful)
- what part of the tutorial are you attempting
- what's the message you type look like
- what's your plugin file look like
- what does your configuration file look like
For your logging issue it looks like your trying to set the log level to an integral value, which makes no sense, did you find that somewhere in the docs?
In the future please try to elaborate on the issue your having and provide all the information that could help someone reproduce or narrow down the problem your having.
from disco.
Console Output(basic information about the connection to the WebSocket)
[INFO] 2020-03-08 21:18:59,187 - Bot:485 - Adding plugin module at path "plugins.bot"
[INFO] 2020-03-08 21:18:59,190 - HTTPClient:271 - GET https://discordapp.com/api/v7/gateway (None)
[INFO] 2020-03-08 21:18:59,393 - GatewayClient:147 - Opening websocket connection to URL `wss://gateway.discord.gg?v=6&encoding=json&compress=zlib-stream`
[INFO] 2020-03-08 21:19:00,371 - GatewayClient:212 - WS Opened: sending identify payload
[INFO] 2020-03-08 21:19:00,371 - GatewayClient:122 - Received HELLO, starting heartbeater...
[INFO] 2020-03-08 21:19:00,901 - GatewayClient:126 - Received READY
Part of the tutorial I am attempting:
https://github.com/b1naryth1ef/disco/blob/master/docs/bot_tutorial/first_steps.md
My plugin file(same as in the tutorial but named bot.py
)
from disco.bot import Plugin
class TutorialPlugin(Plugin):
@Plugin.command('ping')
def command_ping(self, event):
event.msg.reply('Pong!')
My config file:
{
"token": "ACTUAL_TOKEN",
"bot": {
"plugins": [
"plugins.bot"
]
}
}
The command used for executing the bot:
python3 -m disco.cli --config config.json
OS: Ubuntu 18.04
I tested it by pinging the bot with the message ping
from disco.
Regarding the log level: It was my mistake that I thought that the log 'level' was supposed to be integral
from disco.
Related Issues (20)
- Python 3.7 support HOT 4
- How do I change the config to trigger commands with "!" ? HOT 2
- Authentication error but missing config.json HOT 1
- OSError with music example bot when requesting to play an url. HOT 3
- TypeError on update_prescence() HOT 4
- Add ability for Plugin subclasses HOT 3
- Does this library support voice? HOT 2
- TypeError when passing youtubedl bufferedopus object through to player HOT 4
- Bounty: Documentation HOT 4
- installation command error : Command errored out with exit status 1: HOT 5
- error when running in Python 2.7 HOT 1
- Python 3.8 Support HOT 1
- Missing license HOT 1
- Newer release on pypi HOT 4
- new discord API HOT 2
- Setting Bot Activity
- append new events HOT 2
- Is this still maintained/developed? HOT 5
- Documentation Site Problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disco.