const TouchGuild = require('touchguild'); // import for CommonJS
// import * as TouchGuild from 'touchguild' // import for ESM & TS
const client = new TouchGuild.Client({token: 'insert token here'});
client.on('ready', ()=> {
console.log(`Logged as ${client.user.username}`);
});
client.on('error', (err)=> {
console.error("Whoops, somethin' went wrong..", err);
});
client.connect();
Nightly builds are in development builds and features are constantly added & we also note that those builds can have bugs.
NodeJS 16.16.0 or higher is required.
Install the package automatically:
npm install touchguild@nightly
Install the package manually:
npm install dinographicpixels/touchguild#nightly
You need to reproduce those steps everytime you update to a newer nightly build.