Skip to content

Gilgames32/lop

Repository files navigation

Lop#6400

Python application GitHub license

An oddly specific Discord bot written in Python.

Features

  • Captioning media in the iFunny style, using caption-redux
  • Better Twitter embeds, with no embeds
  • Random animal pics using the tinyfox api
  • Auto download art from specific channels
  • Reverse image search using SauceNAO
  • RSS feeds (WIP)

Installation

Note

This bot was made for personal use and is not meant to work across multiple servers as of now.

  1. Clone this repository.

  2. Install the required Python packages using pip:

    pip install -r requirements.txt
  3. Add your tokens to the .env file in the root directory of this project.

    Template
    LOPTOKEN=your discord bot token
    SAUCETOKEN=your saucenao token, you monster
    WEBHOOK32=webhook link of the channel where embeds are replaced
    WEBHOOK_DEBUG=webhook link for debugging, or just use the latter
    E621TOKEN=your e621 token, you monster
    REDDITCID=your reddit client id
    REDDITCSECRET=your reddit client secret
  4. Create a conf.json or run the bot once to have it created for you. Modify the contents of it based on your setup.

    Template
    {
        "debug": False, // for advanced users
        "reddit_token_birth": 0, // do not touch
        "dev": 954419840251199579, // your discord user id
        "labowor": 834100481839726693, // your server id
        "tostash": 1113025678632300605, // auto-download channel id
        "tomarkdown": 969498055151865907, // better embed channel
        "tomarkdown_debug": 1012384595611746465, // channel for testing
        "last_rss": 0, // do not touch
        "twfollows": [] // legacy
    }
  5. Run the bot

    python lop.pyw # or python3
  6. Sync the command tree on Discord using /sync

Contributing

Contributions are welcome! For more info reach out to me in the server below!

Discord

Server invite to labowor Lop#6400 the bot gilgman the developer

Releases

No releases published

Packages

No packages published

Languages