Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No song/track found with given query. #1

Closed
FrostSTeeL opened this issue Mar 30, 2022 · 4 comments
Closed

No song/track found with given query. #1

FrostSTeeL opened this issue Mar 30, 2022 · 4 comments

Comments

@FrostSTeeL
Copy link

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.

@shahriyardx
Copy link
Owner

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?

@FrostSTeeL
Copy link
Author

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

@shahriyardx
Copy link
Owner

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

@FrostSTeeL
Copy link
Author

FrostSTeeL commented Mar 30, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants