Giter Club home page Giter Club logo

discord_to_html's Introduction

What does this bot do?

This bot joins guilds and takes all of their forum channels and converts them into static html. What you do with these html pages is up to you at this point.

Running the bot

  1. Clone the repo and install dependencies:
git clone [email protected]:nwpulverizer/discord_to_html.git
pip install -r requirements.txt
  1. Create a bot account and get your bot token. See discord.py docs for details.

  2. Write your bot token into a .env file in the src/ directory in the repo under the variable BOT_KEY.

  3. Invite the bot to your server. Refer to the documentation linked above. It will need the bot scope and Read Message History and Read Messages/View Channels permissions.

  4. Run the bot:

python main.py -d ../public/ -t ../templates
  1. Once the bot connects, it will generate html files for each server it has joined. This will be output into the -d directory supplied under public-{guildid}/. A simple server is supplied in the base directory of the repo if you would like to view your generated files you can do so with:
python server.py -d ./public/public-{guild_id}/

Why

The point of this bot is to allow the content of help forums to be searchable on the internet. Discord is great for quick responses and fostering community, but there is no way to search all the help being given behind discord's walls. This project aims to fix this.

Roadmap

In no particular order, here are some things that I should improve.

  • Add reaction count to posts
  • Show image attatchments
  • Add sort by date or reaction count
  • Improve styling for posts
  • Add ability to update forum instead of just fully rewriting everytime.
  • Instead of running based on whenever the bot is turned on, create bot commands

discord_to_html's People

Contributors

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