Compare commits

...

2 Commits

Author SHA1 Message Date
Niels Simenon 157ae8bfcc 1.20.2 2022-11-02 20:59:38 +01:00
Niels Simenon 43d307f68c Swapped URL and question in Geo. 2022-11-02 20:59:35 +01:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.20.1", "version": "1.20.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.20.1", "version": "1.20.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bhttp": "^1.2.8", "bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.20.1", "version": "1.20.2",
"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": {

View File

@ -11,7 +11,7 @@ const games = new Map();
const questions = [ const questions = [
'What\'s this country?', 'What\'s this country?',
'Name this country:', 'Name this country.',
'Where are we going on holiday?', 'Where are we going on holiday?',
'What\'s our destination?', 'What\'s our destination?',
'I\'d never heard of that place, what\'s it called?', 'I\'d never heard of that place, what\'s it called?',
@ -45,7 +45,7 @@ function play(context) {
regexp: new RegExp(country.name, 'i'), regexp: new RegExp(country.name, 'i'),
}); });
context.sendMessage(`${pickRandom(questions)} ${url}`, context.room.id); context.sendMessage(`${url} ${pickRandom(questions)}`, context.room.id);
context.logger.info(`Geo played '${country.name}' (${url})`); context.logger.info(`Geo played '${country.name}' (${url})`);
} }