Just an online profile.
Note: Stats above are for public repos.
A discord chatbot using nodejs for insurgency sandstorm game.
Submit some slots everyone loves Love imaginative symmetry and storytelling
Would it be possible for a better instructional video or readme? as visual explains a thousand words.
I have tried setting up the bot to use the advanced chat in my insurgency server... let me explain so far what i have done.
*Server has the advanced chat running (colours works and bold etc) the mutator is in the start up line of the server.bat AND the log command from the bot installation guide is in the start up line too.
*I have gone to discord and created a bot and gave some permissions from the discord faq tutorial and added it to the permanent discord server.
*I have downloaded and installed the nodejs and I have placed the the script files in a folder called BOT in the directory: C:\Server#01\BOT\
*I have then done npm install in command whilst CD to that directory and it installs:
C:\Server#01\BOT>npm install
npm WARN [email protected] requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
audited 14 packages in 0.649s
found 0 vulnerabilities
C:\Server#01\BOT>npm start
> [email protected] start C:\Server#01\BOT
> node server/main.js
internal/modules/cjs/loader.js:1109
throw err;
^
SyntaxError: C:\Server#01\BOT\configs.json: Unexpected token S in JSON at position 234
at parse (<anonymous>)
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Server#01\BOT\server\main.js:2:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Server\AppData\Roaming\npm-cache\_logs\2021-01-01T21_17_54_894Z-debug.log
So far the bot stays offline in the required chat channel (all channels in fact).
The advanced chat works in the Insurgency server.
I have added the connection settings in the config.json before installing the npm package.
the config.json file is:
{
"RconIP": "2.######.40",
"RconPort": 27017,
"RconPassword": "#######",
"discord":
{
"botToken": "Nzk0NjY#####NDE0.X--GPg.cVFM-Xc#######xCnuPDHlI",
"ChatChannel": "server01"
},
"LogFilePath": "C:\Server#01\steamapps\common\sandstorm_server\Insurgency\Saved\Logs\Insurgency.log"
}
Any help would be great :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.