From 4bab164a8372f06bbfb33fd6b085c54cce82fc93 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Thu, 27 Oct 2022 12:00:48 -0400 Subject: [PATCH] initial commit --- README.md | 24 ++++++++++++++++++++++++ main.py | 19 +++++++++++++++++++ memes.py | 0 plex.py | 0 4 files changed, 43 insertions(+) create mode 100644 README.md create mode 100644 main.py create mode 100644 memes.py create mode 100644 plex.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..cd2406d --- /dev/null +++ b/README.md @@ -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 diff --git a/main.py b/main.py new file mode 100644 index 0000000..c05304c --- /dev/null +++ b/main.py @@ -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) + diff --git a/memes.py b/memes.py new file mode 100644 index 0000000..e69de29 diff --git a/plex.py b/plex.py new file mode 100644 index 0000000..e69de29