Discord 24-7 Online Client, Python Script that helps you to keep your discord bot/account online 24/7. Built with discord.py
I will prefer to run it on repl.it as it gives more convinience than glitch website.. Go to repl.it here.To gain free hacker plan, go to here and paste this code there
Code - Linux-Jarvis
A Code written in Python that helps you to keep your discord bot/account online 24/7
The main.py is the main file. keep_alive.py prevents your repl from going to sleep. (If you have a replit hacker plan, then you can delete this file and paste this code inside the main.py file :
import discord
import os
from discord.ext import commands
client = commands.Bot(command_prefix='..', self_bot=True, help_command=None)
@client.event
async def on_ready():
activity = discord.Activity(type=discord.ActivityType.listening, name="Yours-Jarvis on Github") # Activity Types :- listening, watching, streaming, playing
await client.change_presence(status=discord.Status.dnd, activity=activity)
client.run(os.getenv("TOKEN"), bot=False)
DO NOT GIVE YOUR DISCORD TOKEN TO OTHERS!
- Use Uptime Robot to make your repl online 24/7.
- And Please Consider the Reading, Setup to Uptime Robot.
IF YOU HAVE ANY DOUBTS REGARDING THIS, FEEL FREE TO CONTACT ME!
- You Can Find Me Here: ----
- Discord:
For repl.it users -
- Tap on this --
I Have Given you 2 Example Files of Main.py - [main.py] Dc Account.example Or [main.py] Dc Bot.example
- [main.py] Dc Account.example: This Code was helps you to keep your Discord Account online 24/7
import discord
import os
import keep_alive
from discord.ext import commands
client = commands.Bot(command_prefix='..', self_bot=True, help_command=None)
# <!-- Import Your Self Bot Commands <3 -->
@client.event
async def on_ready():
activity = discord.Activity(type=discord.ActivityType.listening, name="Yours-Jarvis on Github") # Activity Types :- listening, watching, streaming, playing
await client.change_presence(status=discord.Status.dnd, activity=activity)
keep_alive.keep_alive()
client.run(os.getenv("TOKEN"), bot=False)
HOW TO USE IT: Copy the code from [main.py] Dc Account.example File and then paste your code inside the main.py File.
- [main.py] Dc Bot.example: This Code was helps you to keep your Discord Bot online 24/7
import discord
import os
import keep_alive
from discord.ext import commands
client = commands.Bot(command_prefix='..')
# <!-- Import Your Bot Module/Commands <3 -->
@client.event
async def on_ready():
activity = discord.Activity(type=discord.ActivityType.listening, name="Yours-Jarvis on Github") # Activity Types :- listening, watching, streaming, playing
await client.change_presence(status=discord.Status.dnd, activity=activity)
keep_alive.keep_alive()
client.run(os.getenv("TOKEN"), bot=True) # if the line does't work so replace this line of code || client.run(os.getenv("TOKEN") ||
HOW TO USE IT: Copy the code from [main.py] Dc Bot.example File and then paste your code inside the main.py File.
After Completing all the required installments and the changes head over to Uptime Robot and login there..Choose the monitor as
https
.Then you would need a link..You could get the link in the web section of you project..First time if you dont run the project you could not see that section.Run the project and you could see it.Then paste the link in uptime robot and take any name and click monitor..And your project will be online 24/7..
We Are Also Gonna Add Some More New Amazing & Existing Features... 🚀 Please follow on GitHub to stay tuned with us for more Exciting future Updates like this.