Compare commits
No commits in common. "ab06712497d1b6303e63bdebc35ddd7bf5965f60" and "1ca03c3faae8c3e6f95ca343d5a5da830440e3ca" have entirely different histories.
ab06712497
...
1ca03c3faa
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.4.7",
|
"version": "1.4.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.4.7",
|
"version": "1.4.6",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bhttp": "^1.2.8",
|
"bhttp": "^1.2.8",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.4.7",
|
"version": "1.4.6",
|
||||||
"description": "Game host for SChat 2-powered chat sites",
|
"description": "Game host for SChat 2-powered chat sites",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -148,14 +148,6 @@ function onCommand(args, context) {
|
||||||
if (context.subcommand === 'stop' && !game) {
|
if (context.subcommand === 'stop' && !game) {
|
||||||
context.sendMessage(`There is no game going on at the moment. Start one with ${config.prefix}trivia!`, context.room.id);
|
context.sendMessage(`There is no game going on at the moment. Start one with ${config.prefix}trivia!`, context.room.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
const subcommand = context.subcommand?.toLowerCase();
|
|
||||||
|
|
||||||
if (subcommand) {
|
|
||||||
settings[subcommand] = typeof settings[subcommand] === 'number' ? (Number(args[0]) || settings[subcommand]) : args[0];
|
|
||||||
|
|
||||||
context.sendMessage(`${subcommand} set to ${settings[subcommand]}`, context.room.id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onMessage(message, context) {
|
async function onMessage(message, context) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue