Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (76)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (6024)

  • discord.py bot doesn't play music

    29 août 2022, par bon ho

    I'm making music bot with discord.py, but bot doesn't play music. The code doesn't send error message.

    


    my code :

    


    @tree.command(name="play", description="play music")
async def playmusic(interaction:Interaction,url_title:str,playfirst:bool=False):
  await interaction.response.send_message("I'm looking for music!!")
  guild=str(interaction.guild.id)
  try:
    queue[guild]
  except KeyError:
    queue[guild]=[]
  if interaction.user.voice is None:
    await interaction.edit_original_response(content="you must join any voice channel")
  else:
    voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    if voice_client == None:
      await interaction.user.voice.channel.connect()
      voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    player = await YTDLSource.from_url(url_title, loop=None)
    if playfirst and len(queue[guild])>1:
      queue[guild].insert(1,player)
    else:
      queue[guild].append(player)
    if not voice_client.is_playing():
      voice_client.play(player,after=None)
      await interaction.edit_original_response(content=f"{player.title} playing!!")
    else:
      await interaction.edit_original_response(content=f"{player.title} enqueued!")
    await asyncio.sleep(7)
    await interaction.delete_original_response()


    


    output :

    


    [INFO    ] discord.player: ffmpeg process 12 successfully terminated with return code of -11.


    


    What should I do ?

    


    version :

    


    discord.py 2.0.0 python 3.10.6

    


  • discord.py bot dosen't play music

    29 août 2022, par bon ho

    I'm making music bot with discord.py. but bot doesn't play music. code is alright but music played 0.000000001 seconds and terminated.

    


    my code :

    


    @tree.command(name="play", description="play music")
async def playmusic(interaction:Interaction,url_title:str,playfirst:bool=False):
  await interaction.response.send_message("I'm looking for music!!")
  guild=str(interaction.guild.id)
  try:
    queue[guild]
  except KeyError:
    queue[guild]=[]
  if interaction.user.voice is None:
    await interaction.edit_original_response(content="you must join any voice channel")
  else:
    voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    if voice_client == None:
      await interaction.user.voice.channel.connect()
      voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    player = await YTDLSource.from_url(url_title, loop=None)
    if playfirst and len(queue[guild])>1:
      queue[guild].insert(1,player)
    else:
      queue[guild].append(player)
    if not voice_client.is_playing():
      voice_client.play(player,after=nextsong(interaction))
      await interaction.edit_original_response(content=f"{player.title} playing!!")
    else:
      await interaction.edit_original_response(content=f"{player.title} enqueued!")
    await asyncio.sleep(7)
    await interaction.delete_original_response()


    


    nextsong :

    


    def nextsong(interaction:Interaction):
  guild=str(interaction.guild.id)
  print(f"end : {guild}")
  voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
  if len(queue[guild])>0:
    queue[guild].pop(0)
  if not voice_client is None:
    voice_client.stop()
  if not len(queue[guild])==0:
    voice_client: discord.VoiceClient = discord.utils.get(client.voice_clients, guild=interaction.guild)
    voice_client.play(queue[guild][0],after=nextsong(interaction))


    


    output :

    


    end : 1012635532829921291
[INFO    ] discord.player: ffmpeg process 12 successfully terminated with return code of -11.


    


    what should I do ?

    


    version :
discord.py 2.0.0 python 3.10.6

    


  • 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.