Compare commits
2 Commits
631dc58d3c
...
157ae8bfcc
Author | SHA1 | Date |
---|---|---|
|
157ae8bfcc | |
|
43d307f68c |
|
@ -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",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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})`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue