Welcome to Python meme Magician! A script where your one-stop solution for meme retrieval and random meme generation in the blink of an eye! 🚀
-
Meme Fetcher: This Python script allows you to summon memes of your choice by fetching .png, .jpeg, or any other image (optional format) format from a designated meme channel.
-
Meme Bot: With this Python script that can deliver a joy by presenting you with a random meme or one of your specified meme ID. ✨
- Fetch Memes: Invoke the
fetcher.py
by providing it with the expected format, channel id you seek. - Summon Random Meme: Activate the Meme Bot, at this step, I assume you know how to create a python bot. If you do not have any idea how, follow this URL: Discord Bot tutorial
- Clone the repository:
git clone https://github.com/DaemonPooling/Discord-memes-fetcher-bot.git
- Navigate to the Project Folder:
cd Discord-memes-fetcher-bot
- Install Dependencies:
pip install -r requirements.txt
- Configure the environment variables (important): Configure these variables below. If you do not know how, follow after the code:
# .env file
YOUR_DISCORD_ACCOUNT_TOKEN='put_your_discord_token_here'
YOUR_BOT_ACCOUNT_TOKEN='put_your_discord_bot_token_here'
FILE_NAME='what_is_the_file_name_looks_like'
- Go to your discord.
- Open the Developer console, or Inspect element then go to Console, you can simply Press F12.
- In the console paste this and enter.
(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()
-
I can't really show them much, since the steps itself are comprehensive and I am trying to make this README.md short. Though, you can visit this link for the tutorial Discord Bot tutorial
-
Run fetcher.py:
python source/fetcher.py
- Run bot.py (YOU SHOULD HAVE YOUR DISCORD BOT PREPARED):
python source/bot.py