Closed PantherzZtv closed 5 years ago
Hello, sorry it took me so long to answer you here.
This bot is using Node.js, inside the example folder I have an example project that is using the KustomBot library. You must have Node.js installed on the machine that is going to run the bot.
You can download this library and create your own project following the project in the example folder.
After downloading and installing Node.js, create a new folder for your project, open your command prompt, powershell or terminal, and run npm init
to start your project, you can fill the information about your project however you prefer, or just press enter until it finishes asking for information.
After your project is initialized you can run npm install kustombot
to install this library, after that you can follow the example project to build your own.
If you prefer you can use git clone https://github.com/Sighmir/KustomBot.git
to clone this project to a KustomBot folder, open the example folder and edit the config.json file with your info, on the terminal use cd KustomBot/example
to go to the example directory, and run npm install
and npm start
to run the example project.
You can get your Twitch API Token here: https://twitchtokengenerator.com/ If you are not sure which permission your bot should have and don't want to have any problems I recommend getting a Custom Scope Token with all scopes enabled. You just have to pick Custom Scope Token, hit Select All and Generate Token!
excellent information. may i suggest a quick edit to the readme that includes this? i will submit a pull request with it added if i get around to it.
Just to add, the current installation instructions say:
Installation
Use npm install kustombot
When i run that i get this:
PS C:\Users\LURK24\Desktop\KustomBot> npm install KustomBot npm ERR! code E404 npm ERR! 404 Not Found: KustomBot@latest
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\LURK24\AppData\Roaming\npm-cache_logs\2019-05-02T15_42_46_306Z-debug.log PS C:\Users\LURK24\Dekstop\KustomBot>
So i definitely like the additional information you included here. I will be running through it soon and may try to update the readme.
Hello @Sighmir quick question:
In the config.json file - i see this:
{
"account": "account",
"token": "token",
"prefix": "!",
"channels": []
}
I am pretty sure i understand the account, token, and prefix. and while i assume that channels could be left blank, i was hoping you could enlighten me on what type of channels would/could/should be added here? Are these spam (advertisement) channels or lurk (non advertisement) channels or something else?
The channels in the config.json are all the channels the bot should be logged on, it should have your channel name and other channels that you wish your bot to connect to.
I think npm might be case sensitive so you might need to type npm install kustombot
all in lowercase.
I noticed you are typing npm install inside de KustomBot folder, in case you cloned this repository and wish to test the example you should run npm install
inside the example folder.
npm install kustombot
is supposed to be used when starting a brand new project of your own that is going to use this library.
A lot of features that were added were originally a request from a friend, so some of them are tailored how he wanted them in the example, if you want to read the gererated l4l.json you can use:
let l4l = JSON.parse(fs.readFileSync('l4l.json', 'utf8'));
thanks i got it working. you are right about npm being case sensitive and that was my issue with that.
by the way, gwardo420 is the one that originally told me about this project. I never tried it until today but i have shared it with multiple people that have asked about free alternatives for !hostme raffles. Now i can actually say that i have set it up and used it.
Thanks for putting this together and thanks for your replies.
It's no problem! If you have any questions or requests add me on Discord - Sighmir#1621.
i dont know how to install it to my channel i need help