Discord.py: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 47:
 
* Stato del Bot a tempo determinato
<syntaxhighlight lang="python3">
async def Cambia_stato(ctx, tempo, nuovo_stato):
nuovo_stato = discord.Game(str(nuovo_stato))
await Bot.change_presence(status = discord.Status.idle, activity = nuovo_stato)
tempo = float(tempo)
from asyncio import sleep
await sleep(tempo)
await Bot.change_presence(status = discord.Status.idle, activity = gioco)
</syntaxhighlight>
 
== Esempi di codice ==
Line 73 ⟶ 82:
async def on_reaction():
</syntaxhighlight></ref>, o quello di [https://unbelievaboat.com/ Unbelievaboat], che ha sostanziali modifiche nella grafica.
 
=== Censura ===
I Bot possono essere usati per censurare dei messaggi espliciti, come nell'esempio che segue:
 
== Collegamenti esterni ==