
Recherche avancée
Autres articles (93)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (2733)
-
Revision 3130 : La page d’inscription ne doit être visible que si elle est autorisée dans ...
24 mars 2010, par kent1 — LogLa page d’inscription ne doit être visible que si elle est autorisée dans la configuration de SPIP
-
How do I make my discord.py bot play mp3 in voice channel ?
17 décembre 2020, par ropkeI'm a beginner in Python and I have recently started making a discord bot for some friends and I. The idea is to type !startq and have the bot join the channel, play an mp3 file that is locally stored in the same folder that the bot.py is in also.



import discord, chalk
from discord.ext import commands
import time
import asyncio

bot = commands.Bot(command_prefix = "!")

@bot.event
async def on_ready():
 print("Bot is ready!")

@bot.command()
async def q5(ctx):
 await ctx.send("@here QUEUE STARTING IN 5 MINUTES")

@bot.command()
async def q3(ctx):
 await ctx.send("@here QUEUE STARTING IN 3 MINUTES")

@bot.command()
async def q1(ctx):
 await ctx.send("@here QUEUE STARTING IN 1 MINUTES")

@bot.command()
async def ping(ctx):
 ping_ = bot.latency
 ping = round(ping_ * 1000)
 await ctx.send(f"my ping is {ping}ms")

@bot.command()
async def startq(ctx):
 voicechannel = discord.utils.get(ctx.guild.channels, name='queue')
 vc = await voicechannel.connect()
 vc.play(discord.FFmpegPCMAudio("countdown.mp3"), after=lambda e: print('done', e))
 bot.run('TOKEN')




So far my bot joins the channel fine, but it doesn't actually play the mp3. I've asked countless people in the "Unofficial Discord API Discord" and a few other programming Discords, but I haven't gotten an answer yet.


-
Anomalie #4402 (Fermé) : Liste de notices
12 février 2021, par cedric -je ferme ce ticket, car un ticket qui référence un wiki qui liste des patches, ça commence à ressembler à un jeu de pistes
+ depuis novembre 2019 ces notices ont été corrigée
+ maintenant proposer une PR pour chaque cas quand on tombe dessus ça sera beaucoup plus efficace