
Recherche avancée
Autres articles (72)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
Sur d’autres sites (11245)
-
Révision 17971 : les elements de saisie des formulaires prennent une classe editer
6 juin 2011, par cedric -cela permet
de cibler .editer au lieu de li ce qui simplifie grandement les css
de ne pas imposer le balisage html et de faire des formulaires en si on le souhaite
-
how to make discord bot queue songs
21 février 2021, par ivFizI'm new to coding, and I wonder if there is a way to queue mp3 songs


here is my play command


if (message.content == "s1") {
 if (!message.member.voice.channel) return message.reply("you have to be in a voicechannel");
 message.member.voice.channel.join().then(VoiceConnection => {
 VoiceConnection.play("./Music/song_1.mp3").on("finish", () => 
 VoiceConnection.disconnect());
 message.reply("done");
 }).catch(e => console.log(e))
};

if (message.content == "s2") {
 if (!message.member.voice.channel) return message.reply("you have to be in a voicechannel");

 message.member.voice.channel.join().then(VoiceConnection => {
 VoiceConnection.play("./Music/song_2.mp3").on("finish", () => 
 VoiceConnection.disconnect());
 message.reply("done");
 }).catch(e => console.log(e))
};



like if the song1 is playing and someone calls for song2 the bot queue it


-
Discord theme songs [kinda solved]
5 septembre 2020, par SweLGI want to give some of my friends theme songs and I have been able to do it using the code below


@commands.Cog.listener()
 async def on_voice_state_update(ctx, member, before, after):
 if member.name in theme_songs.keys():
 voice = await member.voice.channel.connect()
 voice.play(discord.FFmpegPCMAudio(source=f"theme_songs/{theme_songs[member.name]}"))



The problem is the bot is activated every time something happens, i.e. muting, going live etc.
How could i make it so that it only looks for member joining ?


Edit


I found one way to solve it, by adding


if before.channel != after.channel:



It becomes


@commands.Cog.listener()
async def on_voice_state_update(self, member, before, after):
 if before.channel != after.channel:
 if member.name in theme_songs.keys():
 voice = await after.channel.connect()
 voice.play(discord.FFmpegPCMAudio(source=f"theme_songs/{theme_songs[member.name]}"))



This isn't a perfect solution, but it works for now