Coder Social home page Coder Social logo

Tutorial doesn't work about disco HOT 3 OPEN

b1naryth1ef avatar b1naryth1ef commented on May 28, 2024
Tutorial doesn't work

from disco.

Comments (3)

b1naryth1ef avatar b1naryth1ef commented on May 28, 2024

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.

actualdankcoder avatar actualdankcoder commented on May 28, 2024

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.

actualdankcoder avatar actualdankcoder commented on May 28, 2024

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)

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.