Skip to content
Extraits de code Groupes Projets
Valider 7ef58d08 rédigé par Elliu's avatar Elliu
Parcourir les fichiers

Updating readme

parent dc52aa75
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# KumikoBot # SMAW (Show Me A Waifu)
A discord bot that posts pictures of Oumae Kumiko from Hibike Euphonium A discord bot that posts pictures of requested waifus.
Extended from [KumikoBot](https://github.com/TheSmallBlue/KumikoBot) made by [TheSmallBlue](https://github.com/TheSmallBlue)
## Requirements
+ python-praw
+ python-discord
## How to use
Will respond to `show me a xxx` or `show me an xxx`, `xxx` being the name of a waifu in the csv.
To get a list of the available waifus (from discord), send `show me an help`
## How to launch
1. `cp .env.example .env`
1. Fill in the .env with your reddit/discord credentials
1. Fill a `subreddits.csv` file, with lines of `waifus,subreddits` to serve
1. `python launch.py`
...@@ -84,8 +84,8 @@ async def on_ready(): ...@@ -84,8 +84,8 @@ async def on_ready():
async def on_message(message): async def on_message(message):
if message.author == client.user: if message.author == client.user:
return return
if message.content.lower() == "show me a help": if message.content.lower() == "show me an help":
mess = "Usage : ``show me a xxxx``\nCurrently, I can show :```" mess = "Usage : ``show me a xxxx`` or ``show me an xxxx``\nCurrently, I can show :```"
for entry in subreddits.values(): for entry in subreddits.values():
mess += entry.name + " with a picture from r/" + entry.subName + "\n" mess += entry.name + " with a picture from r/" + entry.subName + "\n"
mess += "```" mess += "```"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter