Compare commits
4 Commits
adff50bc66
...
e3742a676f
| Author | SHA1 | Date |
|---|---|---|
|
|
e3742a676f | |
|
|
fd76c067b4 | |
|
|
5f2c313562 | |
|
|
ee1976e3f3 |
7
main.py
7
main.py
|
|
@ -6,6 +6,7 @@ from parse_colles_s2 import create_colloscope_s2, next_colle
|
||||||
from parse_salles import create_edt, parse_edt, create_image
|
from parse_salles import create_edt, parse_edt, create_image
|
||||||
import os
|
import os
|
||||||
from dotenv import load_dotenv, dotenv_values
|
from dotenv import load_dotenv, dotenv_values
|
||||||
|
import random as rng
|
||||||
|
|
||||||
|
|
||||||
# Créer une instance du bot
|
# Créer une instance du bot
|
||||||
|
|
@ -64,7 +65,11 @@ async def on_message(message):
|
||||||
return
|
return
|
||||||
|
|
||||||
if "quoi" in message.content[-10:].lower():
|
if "quoi" in message.content[-10:].lower():
|
||||||
await message.channel.send(f"quoicoubeh {message.author.mention} !")
|
r = rng.randint(0,1000)
|
||||||
|
if r == 1 :
|
||||||
|
await message.channel.send(f"quoicoubeh {message.author.mention} !")
|
||||||
|
else :
|
||||||
|
await message.channel.send(f"FEUUR {message.author.mention} !!!")
|
||||||
if "j'aime" in message.content.lower()[:6]:
|
if "j'aime" in message.content.lower()[:6]:
|
||||||
await message.author.edit(nick=f"{message.content[6:]}")
|
await message.author.edit(nick=f"{message.content[6:]}")
|
||||||
|
|
||||||
|
|
|
||||||
10
readme.md
10
readme.md
|
|
@ -1,15 +1,15 @@
|
||||||
# Staticky
|
# Discord bot for MP2Is
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
The Discord Bot MPII is a Python-based bot that provides various functionalities for managing the MP2I Discord server.
|
Staticky is a Python-based bot that provides various functionalities for managing the MP2I Discord server.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To install and run the Discord Bot MPII, follow these steps:
|
To install and runStaticky, follow these steps:
|
||||||
|
|
||||||
1. Clone the repository: `git clone https://github.com/fallmarsisus/staticky.git`
|
1. Clone the repository: `git clone https://github.com/fallmarsisus/staticky.git`
|
||||||
2. Install the required dependencies: `pip install -r requirements.txt` // Pas tout de suite mdr
|
2. Install the required dependencies: `pip install -r requirements.txt`
|
||||||
3. Run the bot: `botdiscord.py`
|
3. Run the bot: `botdiscord.py`
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
@ -19,6 +19,8 @@ Once the bot is running, you can use various commands to interact with it. Here
|
||||||
- `/help`: Display the list of available commands.
|
- `/help`: Display the list of available commands.
|
||||||
- `/colloscope [group] {timezone}`: Get a .ics file with your orals.
|
- `/colloscope [group] {timezone}`: Get a .ics file with your orals.
|
||||||
|
|
||||||
|
There will be more soon
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue