Skip to content

IlyMooon/Online-Forever-StreamEdition

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online-Forever - Streaming edition

Make your Discord Account 24/7 Online with a custom stream status Before anything, please note it's forked from https://github.com/SealedSaucer/Online-Forever and i'm just putting a custom stream status


A code written in Python that helps you to keep your account 24/7 online with a stream status.

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

name_of_stream_status = "Hello World" #Name that show on stream status, Ex : {username} streaming [...]
stream_link = "https://twitch.tv/CustomStreamLink" #Must be a twitch link only, nothing else will work 
client = commands.Bot(command_prefix=':', self_bot=True, help_command=None)

@client.event
async def on_ready():
  await client.change_presence(activity = discord.Streaming(name = f"{name_of_stream_status}", url = f"{stream_link}"))
  os.system('clear')
  print(f'Logged in as {client.user} (ID: {client.user.id})')

client.run(os.getenv("TOKEN"))

This code is from this tutorial. If you have any issues or doubts regarding this, feel free to contact me.


DO NOT GIVE YOUR TOKEN TO OTHERS!

Giving your token to someone else will give them the ability to log into your account without the password or 2FA.


⭐ Feel free to Star the Repository if this helped you! ;)


Online Forever by SealedSaucer is licensed under Attribution 4.0 International

About

A code that can make your discord account 24/7!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%