Discord bot => Radom Truth or Dare questions in tunisian 😇
# Discord Truth or Dare Bl Tounsi Bot
A simple Discord bot that generates random Truth or Dare questions in tunisian for you and your friends to enjoy action/verite bil tounsi!
Radom Truth or Dare questions in tunisian
## Features
- **Generates random Truth or Dare questions**
- **Customizable questions**
- **Error handling**
- **Installation**
- **Install the required packages**
- **Discord Side**
- **Set up Heruko**
---
## Usage
- The command prefix is **"~"**
>
> [!TIP]
>* To start a game, type **~help** in a channel
> Type **~truth** to receive a Truth question
> Type **~dare** to receive a Dare question
- Customization
You can customize the Truth and Dare questions by modifying the truths and dares lists in the code.
### Initialize the bot with intents
```python
intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix='~', intents=intents)
```
### Truth and Dare questions
##### truths
[
"Chkoun foulena?",
"Chkoun akther wa7da ta7ki m3aha?",
"Chloun 9alsounik?",
"Taw inti rajil?",
"Chkoun il crush mte3ik?",
]
##### dares
[
"Do 10 pushups.",
"9oum 3ayit mich yo9tlouni",
"8ani 8neya fi vocal ou ib3athha le5ir we7id 7kit m3ah 3la discord",
"Do 30 pushups",
"Hbat story fiha inti 7ra9t",
]
### Bot events and commands
```python
@bot.event async def on_ready():
print(f'Bot is ready. Logged in as {bot.user}')
@bot.command(name='truth') async def truth(ctx):
truth_question = random.choice(truths)
await ctx.send({user},' ',truth_question)
@bot.command(name='dare') async def dare(ctx):
dare_question = random.choice(dares)
await ctx.send({user},' ',dare_question)
@bot.command(name='help')
async def truth_or_dare(ctx):
await ctx.send("{user} Type 'truth' or 'dare' to receive a challenge!") def check(m):
return m.author == ctx.author and m.channel == ctx.channel and m.content.lower() in ['truth', 'dare']
try: msg = await bot.wait_for('message', check=check, timeout=30) if msg.content.lower() == 'truth':
aw …