Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (62)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (9136)

  • discord.py and ffmpeg : Play a sound effect while playing music

    26 juin 2022, par JPhusion

    I would like to play a sound effect while playing music in a vc using discord.py and ffmpeg. I know you cannot play more than one audio source at a time, so instead I am trying to pause the music, play the sound effect and continue the music.

    


    This is what I've come up with so far, but because I am playing the sound effect, the resume() method no longer works after the pause().

    


    @commands.command()
    async def sfx(self, ctx):
        try:
            voice = await ctx.author.voice.channel.connect()
        except:
            voice = ctx.guild.voice_client
        try:
            voice.pause()
            # voice.play(discord.FFmpegPCMAudio('./media/sfx/notification.mp3'))
        except:
            voice.pause()
            # voice.play(discord.FFmpegPCMAudio(executable=r"C:\Users\josh\Programming\Discord\ffmpeg\bin\ffmpeg.exe", source='./media/sfx/notification.mp3'))
        guild = self.client.get_guild(752756902525403156)
        member = guild.get_member(876292773639233596)
        print(member.activities[0].name)
        await asyncio.sleep(1)
        voice.resume()
        if member.activities[0].name == "Not playing music":
            await voice.disconnect()


    


  • My bot that I uploaded to heroku doesn't work the music command

    25 août 2022, par Lucas Silva

    I'm creating a bot for discord it works great locally, but after I uploaded it on heroku the music command stopped working I'm using these buildpacksenter image description here

    


    The command code is this

    


     @commands.command(name="musga", help="coloque um url da musica que deseja reproduzir!")
async def play(self, ctx, arg):
    global vc
    
    try:
        voice_channel = ctx.author.voice.channel
        vc = await voice_channel.connect()
    except:
        print('[ERROR]') #debug

    if vc.is_playing():
        await ctx.send(f'{ctx.author.mention}, Já estou cantando.')

    else:
        with YoutubeDL(self.YDL_OPTIONS) as ydl:
            info = ydl.extract_info(arg, download=False)
        
        URL = info['formats'][0]['url']

        vc.play(discord.FFmpegPCMAudio(executable="ffmpeg", source = URL, **self.FFMPEG_OPTIONS))
                
        while vc.is_playing():
            await sleep(1)


    


    in my requirements.txt file I have : discord.py[voice] PyNaCL youtube_dl ffmpeg

    


    When I use the command it enters the call but it doesn't play the music and it doesn't return any error.

    


    i hope someone can help me. Thanks in advance

    


  • My bot doesn't play any music when hosted on Heroku

    25 août 2022, par Lucas Silva

    I am creating a music command, working great locally but not on Heroku. I have the following buildpacks :
enter image description here

    


    This is my code :

    


    @commands.command(name="musga", help="coloque um url da musica que deseja reproduzir!")
async def play(self, ctx, arg):
    global vc
    
    try:
        voice_channel = ctx.author.voice.channel
        vc = await voice_channel.connect()
    except:
        print('[ERROR]') #debug

    if vc.is_playing():
        await ctx.send(f'{ctx.author.mention}, Já estou cantando.')

    else:
        with YoutubeDL(self.YDL_OPTIONS) as ydl:
            info = ydl.extract_info(arg, download=False)
        
        URL = info['formats'][0]['url']

        vc.play(discord.FFmpegPCMAudio(executable="ffmpeg", source = URL, **self.FFMPEG_OPTIONS))
                
        while vc.is_playing():
            await sleep(1)


    


    And requirements.txt :

    


    discord.py[voice]
PyNaCL
youtube_dl
ffmpeg


    


    When using the command, my bot joins the channel but doesn't play the music and doesn't print any traceback.