Skip to content

Commit 496b802

Browse files
committed
Set bot ready for hosting
1 parent 64312c6 commit 496b802

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.db

keep_alive.py

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#This file is for hosting the bot on Uptime Robot via replit.com
2+
#You can search on Youtube about how to do this, it's pretty easy
3+
4+
from flask import Flask
5+
from threading import Thread
6+
7+
app = Flask('')
8+
9+
10+
@app.route('/')
11+
def home():
12+
return "Hello. I am alive!"
13+
14+
15+
def run():
16+
app.run(host='0.0.0.0', port=8080)
17+
18+
19+
def keep_alive():
20+
t = Thread(target=run)
21+
t.start()

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
client = commands.Bot(
10-
command_prefix = "",
10+
command_prefix = "!",
1111
case_insensitive = True,
1212
intents = discord.Intents.all()
1313
)

0 commit comments

Comments
 (0)