Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (60)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (5540)

  • Anomalie #2868 (Fermé) : Calcul #URL_RUBRIQUE dans boucle pour

    27 septembre 2012, par yffic Cloarec

    Ca se passe dans spip 2.1, dernière version svn avec Bonux 2 à jour svn aussi... Donc je ne sais pas si ça sera corrigé. Le problème n’apparait pas en spip 3 Donc sur un spip 2.1 tout neuf avec uniquement Bonux 2, le calcul de #URL_RUBRIQUEid_rub rajoute &connect=pour en fin d’url : (...)

  • Merge commit ’136c3438bbdb56a5d2f1f0f486f180641dc6dda0’

    21 avril 2016, par Derek Buitenhuis
    Merge commit ’136c3438bbdb56a5d2f1f0f486f180641dc6dda0’
    

    This commit is a no-op.

    * commit ’136c3438bbdb56a5d2f1f0f486f180641dc6dda0’ :
    tcp : Use rw_timeout for setting the connect/listen timeouts

    Merged-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

  • Discord.py bot joins voice channel but when using voicechannel.play i get error:Command raised an exception : ClientException : Not connected to voice

    25 mai 2023, par AudibleDruid

    So i've managed to get my discord bot to join a voice channel but when i use the play command it gives me an error that its not conencted to voice Command raised an exception: ClientException: Not connected to voice.

    &#xA;

    Here is my code :

    &#xA;

    import discord&#xA;import random&#xA;import glob&#xA;from discord.ext import commands&#xA;&#xA;##discord intents &#xA;intents = discord.Intents()&#xA;intents.members = True&#xA;intents.messages = True&#xA;intents.guilds = True&#xA;intents.voice_states = True&#xA;

    &#xA;

    connect the bot to a voice channel :

    &#xA;

        &#xA;##called when user wants bot to join voice channel&#xA;@bot.command(name =&#x27;join&#x27;, help = &#x27;Make the bot join a voice channel&#x27;)&#xA;async def join(context):&#xA;    &#xA;    botVoice = context.message.guild.voice_client&#xA;    if context.guild.voice_client:&#xA;        botvoicechannel = context.message.guild.voice_client.channel&#xA;    else:&#xA;        botvoicechannel = None&#xA;    authorVoice = context.author.voice&#xA;    if context.author.voice:&#xA;        authorvoicechannel = context.author.voice.channel&#xA;    else:&#xA;        authorvoicechannel = None&#xA;    &#xA;    ##await context.reply(&#x27;bot voice channel: {}\n\nbot voice:\n{}\n\nauthor voice channel: {}\n\nauthor voice voice:\n{}\n\n&#x27;.format(botvoicechannel, botVoice, authorvoicechannel, authorVoice))&#xA;    &#xA;    if not authorVoice and not botVoice:&#xA;        await context.reply(&#x27;Connect to a voice channel first.&#x27;)&#xA;        return&#xA;    elif authorVoice and not botVoice:&#xA;        await context.reply(&#x27;Connecting to {}&#x27;.format(authorvoicechannel))&#xA;        await authorvoicechannel.connect()&#xA;        return&#xA;    elif not authorVoice and botVoice:&#xA;        await context.reply("You aren&#x27;t in a channel, I&#x27;m in {}".format(botvoicechannel))&#xA;        return&#xA;    elif authorVoice and botVoice:&#xA;        if (botvoicechannel == authorvoicechannel):&#xA;            await context.reply("I&#x27;m already in here.")&#xA;            return&#xA;        else:&#xA;            await context.reply(&#x27;Moving to you!&#x27;)&#xA;            await botVoice.move_to(authorvoicechannel)&#xA;            return&#xA;        return&#xA;

    &#xA;

    and have it play a url :

    &#xA;

    @bot.command(name =&#x27;play&#x27;, help = &#x27;Make the bot play a url&#x27;)&#xA;async def play(context, url):&#xA;    botVoice = context.message.guild.voice_client&#xA;    audioSource = discord.FFmpegPCMAudio(url, executable="ffmpeg")&#xA;    botVoice.play(audioSource, after = None)&#xA;

    &#xA;

    the code works and the bot joins the voice channel. i see it in the voice channel with me, however i get an error when it gets to botVoice.play(audioSource, after = None)

    &#xA;

    the error message is :&#xA;error: Command raised an exception: ClientException: Not connected to voice.

    &#xA;

    i changed botVoice = context.message.guild.voice_client from botVoice = context.guild.voice_client but that didnt seem to change anything. not sure what to try next. It seems like it wants to play the url the bot just doesnt realize its in the voice channel with me.

    &#xA;

    maybe a related error. if i kill my python script the bot remains in the channel even though its not running. then when i start it up and do the !join command it says its joining even though its already in the channel with me. its weird because on the join command it checks to see if its already in a voice channel so it should know that its in there with me. idk what to try next. thanks for any suggestions. i only posted relevant code. let me know if you think im missing something else.

    &#xA;

    thanks for the help

    &#xA;