Skip to content

NedAckland/DogeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DogeBot

The Botman repo

This is a Bot similar to a discord/slack bot, for Dogehouse

The dogegarden API

Setup

  1. Clone repo
  2. run 'npm i' in terminal
  3. Go to Dogehouse
  4. Open Developer options (F12 or Ctrl+Shift+I)
  5. Go to Application > Local Storage > dogehouse.tv
  6. Copy your token and refresh-token and put them in an .env file:

.env:

    DOGEHOUSE_TOKEN=your-token 
    DOGEHOUSE_REFRESH_TOKEN=your-refresh-token

How to add commands to the bot

  1. add folder in ./commands with your name
  2. make a new .js file in that folder with the name of the command
  3. add object to your new file and define its execution and name
module.exports = {
    name: 'name-of-command',
    description: 'what is it , how does it work?',
    aliases: ['this', 'that'],
    execute(data) {
        data.message.reply(['send whisper reply'], {whispered: true, mentionUser: true})
        data?.app?.bot?.sendMessage('send to main chat').then((response) => console.log(response)) // optional chaining is a preference
    },
};
  1. reload the bot
  2. test command in chat. prefix: -.

the default prefix is set in config.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published