├── README.md ├── webserver.py └── main.py /README.md: -------------------------------------------------------------------------------- 1 | # DCBot-On24x7 2 | 3 | ![img](https://i.ibb.co/F7CZcfS/image.png) 4 | 5 | Installation >> [Tutorial](https://github.com/vsec7/DC-Bot-Auto-Post/blob/main/README.md) 6 | -------------------------------------------------------------------------------- /webserver.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | from threading import Thread 3 | 4 | app = Flask('') 5 | 6 | @app.route('/') 7 | def home(): 8 | return "Hello. Webserver alive!" 9 | 10 | def run(): 11 | app.run(host='0.0.0.0',port=8080) 12 | 13 | def keep_alive(): 14 | t = Thread(target=run) 15 | t.start() 16 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import discord 2 | from discord.ext import commands 3 | import webserver 4 | from webserver import keep_alive 5 | 6 | bot = commands.Bot( 7 | command_prefix='', 8 | activity=discord.Activity( 9 | application_id=874469380765913109, 10 | name='EO Community', 11 | type=discord.ActivityType.watching, 12 | state='In Group', 13 | details='Early OG Community', 14 | assets={'large_image':'874485178242854993'}), 15 | self_bot=True) 16 | 17 | keep_alive() 18 | bot.run("Token Discord", bot=False) 19 | --------------------------------------------------------------------------------