Home
Docs
Logging
  • VuePress

    • Getting Started
    • Markdown
    • Container
  • JavaScript

    • Discord.js
  • Tools

    • Netdata
GitHub (opens new window)
  • Home

    • Home
    • Basic Informations
  • Commands

    • Command Overview
    • Information Commands
    • Media Commands
    • Misc Commands
    • Moderation Commands
    • Search Commands
    • Music Commands
    • Owner Commands
      • DownloadEmotes Command
      • Eval Command
      • Exec Command
      • LeaveServer Command
      • SetActivity Command
      • SetAvatar Command
      • SetNickname Command
      • SetUsername Command
      • SSH Command
Theme Configurator
BaroBot Documentation
​
Home
Docs
Logging
  • VuePress

    • Getting Started
    • Markdown
    • Container
  • JavaScript

    • Discord.js
  • Tools

    • Netdata
GitHub (opens new window)

# Owner Commands

# DownloadEmotes Command

Download all emotes from all servers

Args
DM
NSFW
Cooldown
0 seconds
Aliases
dedownloademote
BotPerms
MemberPerms
BOT_OWNER

# Eval Command

Evaluate and execute Javascript code through Discord

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-quote <javascript_code>

# Examples

Calculate

-eval 5 + 6
 -eval Math.pow(5, 8)

Display all servers the bot is in (only from 1 shard)

-eval message.client.guilds.map(g=>g.name).join('\n')

Leave server with id: 285532310466461697

-eval message.client.shard.broadcastEval('if(this.guilds.get(\'285532310466461697\'))this.guilds.get(\'285532310466461697\').leave()')

# Exec Command

Evaluate and execute Javascript code through Discord

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-exec <script>

INFORMATION

The starting point/ base of the command is where the index.js file is.

This command works like the SSH COMMAND. It is executing a given command on the cli the device is running on.

# LeaveServer Command

Let the bot leave a Server

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-leaveserver <guild_id>

# SetActivity Command

Change the discord activity of the bot

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-setActivity <activity> -t <PLAYING | STREAMING | LISTENING | WATCHING> -u <STREAM_URL> url and type are optional!

Available types:

  • PLAYING (default)
  • STREAMING
  • LISTENING
  • WATCHING

# Example

-setActivity i am borred -t WATCHING

-setActivity check me out -t STREAMING -u https://www.twitch.tv/misselion

# SetAvatar Command

Change the bot's avatar

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-setAvatar <avatar_url>

CAUTION

Make sure you pass a valid image url as an argument!

# SetNickname Command

Set bots nickanme

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-setNickname <nickname> -r <reason> reason is optional

# SetUsername Command

Set bots username

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-setUsername <username>

# SSH Command

Execute command line commands on connected device using SSH. Mainly used to execute scripts like start, restart and update

Args
DM
NSFW
Cooldown
0 seconds
Aliases
BotPerms
MemberPerms
BOT_OWNER
-ssh <script>

TIP

The starting point/ base of the command is /root/.

This command works like the EXEC COMMAND. It is executing a given command on the cli the device is running on.

# Examples

-ssh sudo apt-get update                            => Update Linux host
-ssh ls                                             => check content in /root
-ssh cd BaroBot && ls                               => check content in BaroBot folder
-ssh cd /root/BaroBot/BaroBotTS/ && sh start.sh     => start BaroBot
-ssh cd /root/BaroBot/BaroBotTS/ && sh restart.sh   => restart BaroBot
-ssh cd /root/BaroBot/BaroBotTS/ && sh update.sh    => Update BaroBot

How to stop the bot

-ssh tmux kill-session -t BaroBotJava         => Shutdown BaroBotJava

For more informations about PM2 click here (opens new window)

Last Updated 11/8/2020, 9:23:10 PM