Compare commits
No commits in common. "84025d6a8b77479e70b73f9dbff796ee56752038" and "7531a69904498327295ec07d75fcfc6fa78a8b8c" have entirely different histories.
84025d6a8b
...
7531a69904
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.30.4",
|
"version": "1.30.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.30.4",
|
"version": "1.30.3",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^8.3.0",
|
"better-sqlite3": "^8.3.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.30.4",
|
"version": "1.30.3",
|
||||||
"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": {
|
||||||
|
|
|
@ -35,7 +35,7 @@ function start(length, context, attempt = 0) {
|
||||||
|
|
||||||
if (answers.some((answer) => answer.word === anagram)) {
|
if (answers.some((answer) => answer.word === anagram)) {
|
||||||
if (attempt >= 10) {
|
if (attempt >= 10) {
|
||||||
context.sendMessage(`Sorry, I did not find a mashable ${length}-letter word`, context.room.id);
|
context.sendMessage(`Sorry, I did not find a mashable ${length}-letter word`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,11 +117,6 @@ async function getGames(bot, identifier) {
|
||||||
const sendMessage = (body, roomId, options, recipient) => {
|
const sendMessage = (body, roomId, options, recipient) => {
|
||||||
const curatedBody = curateMessageBody(body, game, key, options);
|
const curatedBody = curateMessageBody(body, game, key, options);
|
||||||
|
|
||||||
if (!roomId && !recipient) {
|
|
||||||
logger.error(`Missing room ID or recipient for message: ${body}`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config.platform === 'irc') {
|
if (config.platform === 'irc') {
|
||||||
bot.client.say(/^#/.test(roomId) ? roomId : recipient, curatedBody);
|
bot.client.say(/^#/.test(roomId) ? roomId : recipient, curatedBody);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue