Coder Social home page Coder Social logo

daemonpooling / discord-memes-fetcher-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

A Discord Python bot that gives you ability to retrieve a lot of memes in a discord channel, and ability to retrieve them back through a BOT.

Python 100.00%

discord-memes-fetcher-bot's Introduction

Python meme Magician ๐Ÿง™โ€โ™‚๏ธ

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! ๐Ÿš€

๐ŸŒˆ What's Inside?

  • 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. โœจ

๐Ÿš€ How to Use?

  1. Fetch Memes: Invoke the fetcher.py by providing it with the expected format, channel id you seek.
  2. 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

๐Ÿ“œ Instructions:

  1. Clone the repository:
git clone https://github.com/DaemonPooling/Discord-memes-fetcher-bot.git
  1. Navigate to the Project Folder:
cd Discord-memes-fetcher-bot
  1. Install Dependencies:
pip install -r requirements.txt
  1. 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'

1. Setting up your discord's token:

  1. Go to your discord.
  2. Open the Developer console, or Inspect element then go to Console, you can simply Press F12. image
  3. 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()

image

2. Setting up your discord's bot token:

  1. 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

  2. Run fetcher.py:

python source/fetcher.py
  1. Run bot.py (YOU SHOULD HAVE YOUR DISCORD BOT PREPARED):
python source/bot.py

discord-memes-fetcher-bot's People

Contributors

3ofiz4 avatar arzonmac avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.