Skip to content

Play a specific or random meme sound from MyInstans in your Discord server right now

License

Notifications You must be signed in to change notification settings

aacgn/myinstants-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyInstants bot

Play a specific or random meme sound from MyInstans in your Discord server right now.

Invitation: https://discordapp.com/api/oauth2/authorize?client_id=508706513502601225&permissions=8&scope=bot

Getting Started

These instructions were developed from an environment installation and execution of your Bot.

Prerequisites

Git

In order for clone the repository it is necessary to have installed [git] (https://git-scm.com/) on your machine.

Installing on Linux (Ubuntu):

sudo apt-get install git

Node.js

In order for iniatilize the code it is necessary to have installed [Node.js] (https://nodejs.org/en/) on your machine.

Installing on Linux (Ubuntu):

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt install nodejs

FFmpeg

In order for the bot to be able to play on the voice channels of the disc it is necessary to have [FFmpeg] (https://www.ffmpeg.org/) installed on your machine.

Installing on Linux (Ubuntu):

sudo apt-get install ffmpeg

Installing

Clonning MyInstants bot

Once you have all the prerequisites installed, let's go to the first step of all Github repository: Clone and extract the repository.

git clone https://github.com/aacgn/myinstants-bot.git
unzip myinstans-bot.zip

Installing dependencies

In this step, we will install all the necessary needs for the initiation of the project.

cd myinstans-bot
npm install

Starting MyInstants bot

Open src/index.ts and change the value of token variable (line 7) for your BOT_TOKEN:

let options: BotOptions = {
    token: process.env.BOT_TOKEN || 'BOT_TOKEN',
    commandFilePattern: 'commands/*.command.ts'
}

Finally, initialize the bot:

npm start

The expect result is this:

> myinstants-bot-v2@1.0.0 start /home/antonio/Documentos/myinstants-bot-v2
> tsc --lib "es6" && node src/dist/index.js

[Sun, 11 Nov 2018 03:09:11 GMT | info]     [ ADDED ] Added 'play' command in commands list.
[Sun, 11 Nov 2018 03:09:11 GMT | info]     [ ADDED ] Added 'random' command in commands list.
[Sun, 11 Nov 2018 03:09:11 GMT | info]     [ ADDED ] Added 'help' command in commands list.
[Sun, 11 Nov 2018 03:09:12 GMT | info]     Started successfully with 3 command(s) loaded and 0 skipped.

Built With

  • npm - Package manager
  • qdbb - The Discord bot framework used
  • CleanVoice - My Instants API

Authors

  • Antonio Neto (MyInstants bot) - Initial work - aacgn

Thanks

License

MIT License

Copyright (c) 2018 Antonio Neto

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Play a specific or random meme sound from MyInstans in your Discord server right now

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published