Giter Site home page Giter Site logo

selfrythm's Introduction

Self Rythm Bot

USING SELFBOTS ARE AGAINST DISCORD TOS, THE USAGE OF A SELFBOT MAY RESULT IN A BAN OF YOUR ACCOUNT, WE ARE NOT RESPONSIBLE FOR ANY USAGE OF THE BOT

⚠ Warning

We created that for fun, we don't encourage you to use selfbots to create trouble on public servers and we won't do so.

What is this ?

This project is a Self Rythm Bot in Node JS. It's made to do the same actions as Rythm while being a selfbot, this mean it can be used with a user account. This has many advantages, for example you can use it on any servers you're in, even without permissions.

⛓ Docker installation

You can use SelfRythm as a Docker container. To do so, you need to install Docker on your machine. Create a Discord account and get the token. Then, you can run the command:

docker run -d \
--name "SelfRythm" \ # Optionnal, you can change it
-e "TOKEN=Your Discord Token" \ #Required
-e "PREFIX=A Prefix" \ #Optionnal, default is $
-e "ALLOWED=[IDS]" \ #Optionnal, list of Discord IDs allowed to use bot commands, everyone can use if not provided
thediscorders/selfrythm

⛓ Manual installation

  1. Create a Discord account and get the token
  2. Clone the repository and navigate in the folder
  3. Install all the modules with npm i
  4. Configure the bot with your personnal creditentials
  • Values to provide:
    • In the config.js file
      • The user account token
      • The bot's prefix
    • In the allowed.json file
      • An array of user's IDs that can control the bot
    • In the strings.json file, you can make custom messages
  1. Add an ffmpeg build to system PATH

👌 Usage

Start the bot by doing npm start in a terminal in the folder.

  • Commands :

    • $play {url} ▶️ makes the selfbot joins the channel you're in and starts playing the sound from the link, if there is already a music playing it adds it to a queue.
    • $join ▶️ makes the selfbot move to the voice channel you're in (music needs to be playing)
    • $skip ▶️ skips the current music playing.
    • $stop ▶️ stops the music playing and the selfbot leave the channel.
    • $loop ▶️ loop the current music, re enter the command to stop.
    • $queue ▶️ show the musics in the queue.
    • $clear ▶️ clears the current queue.
    • $volume <number> ▶️ modifies the volume of the bot.

💡 Features

  • Clear and Customizable messages on commands
  • Creates a log when an unauthorized user tries to use the SelfBot
  • Being a SelfBot allows you to :
    • add it on each discord server you're in
    • customize the list of users allowed to use it

Alternative usage

The selfbot can be used as a regular bot, just change the token for a bot's one

selfrythm's People

Contributors

dependabot[bot] avatar depfu[bot] avatar firokat avatar luzivog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

selfrythm's Issues

failed to connect to voice channel

Describe the bug
The bot fails to establish a voice channel connection & throws an "VOICE_CONNECTION_TIMEOUT" exception

To Reproduce
Steps to reproduce the behavior:

  1. Run the bot
  2. Execute $play with any song

Expected behavior
The bot plays a song

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 22h2
  • Node Version: 18.16.0

Additional context
None

Missing allowed.json file?

Describe the bug
The file "allowed.json" is missing.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
The file is missing.
Screenshots
It doesn't exist.

Desktop (please complete the following information):

  • OS: Win 10
  • Version: Newest win 10, I just reinstall it.
  • Node Version: 18.16.1 LTS

Additional context
Add any other context about the problem here.

Youtube search broken

Describe the bug
Youtube.search boken

To Reproduce
Steps to reproduce the behavior:
$play [search]

Expected behavior
Play Music

Screenshots
/home/username/SelfRythm/utils.js:62
YouTube.search(stringOfWords, { limit: 1 })
^

TypeError: YouTube.search is not a function
at /home/username/SelfRythm/utils.js:62:21
at new Promise ()
at Object.getUrl (/home/username/SelfRythm/utils.js:61:24)
at Object.module.exports.run (/home/username/SelfRythm/commands/play.js:24:28)
at module.exports (/home/username/SelfRythm/events/message.js:13:13)
at Client.emit (node:events:365:28)
at MessageCreateAction.handle (/home/username/SelfRythm/node_modules/discord.js-selfbot/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/username/SelfRythm/node_modules/discord.js-selfbot/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/username/SelfRythm/node_modules/discord.js-selfbot/src/client/websocket/WebSocketManager.js:386:31)
at WebSocketShard.onPacket (/home/username/SelfRythm/node_modules/discord.js-selfbot/src/client/websocket/WebSocketShard.js:435:22)

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: Lastest
  • Node Version: any

Additional context
You fogot .default at const YouTube = require("youtube-sr"); in utils.js

Ability to listen to commands from DMs

It would be really cool if the bot could respond to commands within DMs itself. It would make the bot a lot more discreet and people in servers wouldn't be getting suspicious about the bot either.

Bot joins then disconnects instantly when playing a song.

I queue a song it joins disconnects in terminal this is info

[ 15/10/2023 | 22:51:41 ] Finished playing the music : THEKIDSZN - CHOSEN (OFFICIAL MUSIC VIDEO)
[ 15/10/2023 | 22:51:41 ] No songs left in queue
[ 15/10/2023 | 22:51:51 ] Looking for music details...
[ 15/10/2023 | 22:51:52 ] Got music details, preparing the music to be played...
[ 15/10/2023 | 22:51:52 ] Started playing the music : The Chosen: Season One, Episodes 1 & 2
evalmachine.:426
koa=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,JB(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};gma(ncode);

                                                  ^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token
at new Script (node:vm:100:7)
at exports.decipherFormats (C:\Users\admin\Downloads\SelfRythm-main\node_modules\ytdl-core\lib\sig.js:116:51)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async exports.getInfo (C:\Users\admin\Downloads\SelfRythm-main\node_modules\ytdl-core\lib\info.js:401:17) {
resource: AudioResource {
playStream: Encoder {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
encoder: null,
_options: [Object],
_required: 3840,
_buffer: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
edges: [ [Object], [Object], [Object] ],
metadata: null,
volume: VolumeTransformer {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 5,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
_readInt: [Function (anonymous)],
_writeInt: [Function (anonymous)],
_bits: 16,
_bytes: 2,
_extremum: 32768,
volume: 0.06902969996027704,
_chunk: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
encoder: Encoder {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
encoder: null,
_options: [Object],
_required: 3840,
_buffer: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
audioPlayer: AudioPlayer {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_state: [Object],
subscribers: [Array],
behaviors: [Object],
debug: [Function (anonymous)],
[Symbol(kCapture)]: false
},
playbackDuration: 0,
started: false,
silencePaddingFrames: 5,
silenceRemaining: -1
}
}
[ 15/10/2023 | 22:51:52 ] Finished playing the music : The Chosen: Season One, Episodes 1 & 2
[ 15/10/2023 | 22:51:52 ] No songs left in queue

Let me know if anything else is needed thanks for any help in advance

Trouble with getting the bot to work.

Hi, I read through the 2 resolved issues regarding youtube search and the bot not working.

I've gone through the manual installation and i made sure to install ffmpeg and to add it to PATH. When I type a command in discord, nothing happens. No audio plays, no sign of life shows in the command prompt either.

(For example, this is something that I would type in: "$play https://youtube.com/greatsongforsureforsure"

In the screenshot below, that is pretty much all I see in the command prompt.

image

Slash Commands

As you may know, discord is going to force slash command implementation by august, I'm not sure if discord.js has slash commands implemented yet, but other language libraries like discord.py-self have slash commands implemented on other branches.

I know you're not working on this project anymore, but I'm not good with discord.js, so if it's possible, add slash commands to allow this bot to continue working after august.

Group dm music bot

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

No

Describe the bug
There's no Allowed.json in the folder directory.

Expected behavior
I expected there to be an Allowed.json so I can use discord ID's.

Screenshots
image

Desktop (please complete the following information):

  • OS: [Windows 10 x64]
  • Version [2H22]
  • Node v16.15.0

Additional context
Is there any way for me to get the file or make my own for it to work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.