mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Create Discord server widgets for websites of all sizes! A simple to setup process for end-users. Server members may view or send messages into an embedded Discord channel.
581d2b42c9
uWSGI is good too. |
||
---|---|---|
titanembeds | ||
tmp | ||
.gitignore | ||
config.example.py | ||
README.md | ||
requirements.txt | ||
run_c9.py | ||
run.py |
Titan
There was a time when Discord doesn't support embedding the chat on a webpage. But with Titan, you can! It is as simple as 1, 2, 3!
- Invite the bot to your server (You must have "Manage Server" permissions)
- Configure the embed to your liking (toggling guest users, etc)
- Copy the iframe code and paste the line in your webpage!
Features
- Guest users (a quick way to invite users who do not have a Discord account)
- Moderation Features (Kick & ban users by IP addresses, toggling guest users)
- Discord OAuth support. (Allows those who have a discord account to access the embed)
- Responsive material design! (Thanks materializecss!!)
- All features are done via REST apis (respects discord's rate limiting). Although do not provide consistant connection to Discord, they are easier to maintain and does not often "disconnects" from Discord servers.
Installation
Would you like to run your own copy of Titan Embeds?
- Clone the repo (make sure you have python 2.7 installed on your system)
- Install the pip requirements
pip install -r requirements.txt
- Clone
config.example.py
and rename it toconfig.py
. Edit the file to your standards - Make sure that the bot is online in the websockets once. This is required because the bot cannot send messages until it has used the ws. Use something like discord.py to log the bot into discord websockets. You can close it afterwards. So basically if the bot acciunt is online ONCE in it's lifespan- you're good.
- Run the development web via
python run.py
-- Though we suggest to use a better server software (look into gunicorn, nginx, uwsgi, etc)
Join us!
Come and talk with us at our very own discord server! We offer support too!
Disclaimer
This project is never to be used as a replacement for Discord app. It is used in conjunction for a quick and dirty Discord embed for websites. Some uses are via shoutboxes, etc.