Code Monkey home page Code Monkey logo

Comments (4)

shahriyardx avatar shahriyardx commented on June 27, 2024

Hello,
Bot worked great until a week ago. I updated it to the latest version but, i get the error in the title anytime i try to use it. It doesn't matter if i give the exact link to the bot or not.

Can you provide more information so I can reproduce this issue?

from dismusic.

FrostSTeeL avatar FrostSTeeL commented on June 27, 2024

My bot's code and the screenshot of the error im getting is below, is there anything else i can provide?

import discord
import requests
from discord.ext import commands, tasks

from env import PASSWORD, TOKEN

bot = commands.Bot(command_prefix='!')

bot.lavalink_nodes = [
    {
        'host': 'lava.link',
        'port': 80,
        'password': PASSWORD,
    }
]


@bot.event
async def on_ready():
    change_status.start()
    bot.load_extension('dismusic')
    print('Valhalla calling..')


@tasks.loop(minutes=15)
async def change_status():
    r = requests.get('https://www.google.com/')
    print(r)
    await bot.change_presence(
        activity=discord.Activity(
            name=f'!play In Maidjan',
            type=1
        )
    )

bot.run(TOKEN)

screenshot

from dismusic.

shahriyardx avatar shahriyardx commented on June 27, 2024

I think the node is causing problem. Can you try using a different node

from dismusic.

FrostSTeeL avatar FrostSTeeL commented on June 27, 2024

I think the node is causing problem. Can you try using a different node

Yes you were right, it was the node! Thank you!

edit: Is there any way we can implement an error message when the node fails?

from dismusic.

Related Issues (8)

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.