initial commit
This commit is contained in:
commit
4bab164a83
24
README.md
Normal file
24
README.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Memerr
|
||||||
|
======
|
||||||
|
|
||||||
|
A discord bot to manage you and your friend's meme collection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Enviroment vars
|
||||||
|
------
|
||||||
|
|
||||||
|
* DISCORD_TOKEN
|
||||||
|
* Discord bot auth token
|
||||||
|
* S3_URL
|
||||||
|
* S3 Endpoint URL, include port if needed
|
||||||
|
* S3_UN
|
||||||
|
* S3 Username
|
||||||
|
* S3_PW
|
||||||
|
* S3 Password
|
||||||
|
* S3_TLS
|
||||||
|
* Does the S3 endpoint use TLS/HTTPS?
|
||||||
|
* Either 'True' or 'False'
|
||||||
|
* Defaults to True
|
||||||
|
* S3_BUCKET
|
||||||
|
* The bucket to put memes into
|
19
main.py
Normal file
19
main.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
import discord
|
||||||
|
import requests
|
||||||
|
import os, random
|
||||||
|
from fuzzywuzzy import fuzz, process
|
||||||
|
from minio import Minio
|
||||||
|
from minio.error import S3Error
|
||||||
|
|
||||||
|
#globals for discord
|
||||||
|
token = os.environ['DISCORD_TOKEN']
|
||||||
|
client = discord.Client()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
client.run(token)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user