Update dependencies

This commit is contained in:
syuilo 2020-08-23 11:31:35 +09:00
parent a18126c907
commit ecba11b654
8 changed files with 32 additions and 28 deletions

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib"
}

View file

@ -12,7 +12,7 @@ Misskey用の日本語Botです。
``` json
{
"host": "https:// + あなたのインスタンスのURL (末尾の / は除く)",
"i": "藍として動かしたいアカウントのAPIキー",
"i": "藍として動かしたいアカウントのアクセストークン",
"keywordEnabled": "キーワードを覚える機能 (MeCab が必要) を有効にする場合は true を入れる (無効にする場合は false)",
"chartEnabled": "チャート機能を無効化する場合は false を入れてください",
"reversiEnabled": "藍とリバーシで対局できる機能を有効にする場合は true を入れる (無効にする場合は false)",

View file

@ -7,30 +7,30 @@
},
"dependencies": {
"@types/chalk": "2.2.0",
"@types/lokijs": "1.5.2",
"@types/node": "10.0.5",
"@types/lokijs": "1.5.3",
"@types/node": "14.6.0",
"@types/promise-retry": "1.1.3",
"@types/random-seed": "0.3.3",
"@types/request-promise-native": "1.0.16",
"@types/request-promise-native": "1.0.17",
"@types/seedrandom": "2.4.28",
"@types/uuid": "3.4.4",
"@types/ws": "6.0.1",
"@types/uuid": "8.3.0",
"@types/ws": "7.2.6",
"autobind-decorator": "2.4.0",
"canvas": "2.5.0",
"chalk": "2.4.2",
"lokijs": "1.5.6",
"canvas": "2.6.1",
"chalk": "4.1.0",
"lokijs": "1.5.11",
"mecab-async": "0.1.2",
"misskey-reversi": "0.0.5",
"promise-retry": "1.1.1",
"promise-retry": "2.0.1",
"random-seed": "0.3.0",
"reconnecting-websocket": "4.1.10",
"request": "2.88.0",
"request-promise-native": "1.0.7",
"seedrandom": "2.4.3",
"reconnecting-websocket": "4.4.0",
"request": "2.88.2",
"request-promise-native": "1.0.9",
"seedrandom": "3.0.5",
"timeout-as-promise": "1.0.0",
"ts-node": "8.0.3",
"typescript": "3.4.5",
"uuid": "3.3.2",
"ws": "6.2.1"
"ts-node": "9.0.0",
"typescript": "4.0.2",
"uuid": "8.3.0",
"ws": "7.3.1"
}
}

View file

@ -4,8 +4,8 @@ import * as fs from 'fs';
import autobind from 'autobind-decorator';
import * as loki from 'lokijs';
import * as request from 'request-promise-native';
import chalk from 'chalk';
import * as uuid from 'uuid/v4';
import * as chalk from 'chalk';
import { v4 as uuid } from 'uuid';
const delay = require('timeout-as-promise');
import config from './config';

View file

@ -1,5 +1,9 @@
// AiOS bootstrapper
import * as chalk from 'chalk';
import * as request from 'request-promise-native';
const promiseRetry = require('promise-retry');
import from './ai';
import config from './config';
import _log from './utils/log';
@ -22,10 +26,6 @@ import ValentineModule from './modules/valentine';
import MazeModule from './modules/maze';
import ChartModule from './modules/chart';
import chalk from 'chalk';
import * as request from 'request-promise-native';
const promiseRetry = require('promise-retry');
console.log(' __ ____ _____ ___ ');
console.log(' /__\\ (_ _)( _ )/ __)');
console.log(' /(__)\\ _)(_ )(_)( \\__ \\');

View file

@ -1,12 +1,13 @@
import autobind from 'autobind-decorator';
import * as chalk from 'chalk';
const delay = require('timeout-as-promise');
import from './ai';
import Friend from './friend';
import { User } from './misskey/user';
import includes from './utils/includes';
import or from './utils/or';
import chalk from 'chalk';
import config from './config';
const delay = require('timeout-as-promise');
export default class Message {
private ai: ;

View file

@ -129,7 +129,7 @@ export default class extends Module {
}
});
ai.on('message', msg => {
ai.on('message', (msg: Record<string, any>) => {
if (msg.type == 'put') {
gw.send('set', {
pos: msg.pos

View file

@ -1,4 +1,4 @@
import chalk from 'chalk';
import * as chalk from 'chalk';
export default function(msg: string) {
const now = new Date();