mirror of
https://github.com/syuilo/ai.git
synced 2024-11-21 12:47:59 +00:00
Update dependencies
This commit is contained in:
parent
a18126c907
commit
ecba11b654
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"typescript.tsdk": "node_modules\\typescript\\lib"
|
||||||
|
}
|
|
@ -12,7 +12,7 @@ Misskey用の日本語Botです。
|
||||||
``` json
|
``` json
|
||||||
{
|
{
|
||||||
"host": "https:// + あなたのインスタンスのURL (末尾の / は除く)",
|
"host": "https:// + あなたのインスタンスのURL (末尾の / は除く)",
|
||||||
"i": "藍として動かしたいアカウントのAPIキー",
|
"i": "藍として動かしたいアカウントのアクセストークン",
|
||||||
"keywordEnabled": "キーワードを覚える機能 (MeCab が必要) を有効にする場合は true を入れる (無効にする場合は false)",
|
"keywordEnabled": "キーワードを覚える機能 (MeCab が必要) を有効にする場合は true を入れる (無効にする場合は false)",
|
||||||
"chartEnabled": "チャート機能を無効化する場合は false を入れてください",
|
"chartEnabled": "チャート機能を無効化する場合は false を入れてください",
|
||||||
"reversiEnabled": "藍とリバーシで対局できる機能を有効にする場合は true を入れる (無効にする場合は false)",
|
"reversiEnabled": "藍とリバーシで対局できる機能を有効にする場合は true を入れる (無効にする場合は false)",
|
||||||
|
|
34
package.json
34
package.json
|
@ -7,30 +7,30 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/chalk": "2.2.0",
|
"@types/chalk": "2.2.0",
|
||||||
"@types/lokijs": "1.5.2",
|
"@types/lokijs": "1.5.3",
|
||||||
"@types/node": "10.0.5",
|
"@types/node": "14.6.0",
|
||||||
"@types/promise-retry": "1.1.3",
|
"@types/promise-retry": "1.1.3",
|
||||||
"@types/random-seed": "0.3.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/seedrandom": "2.4.28",
|
||||||
"@types/uuid": "3.4.4",
|
"@types/uuid": "8.3.0",
|
||||||
"@types/ws": "6.0.1",
|
"@types/ws": "7.2.6",
|
||||||
"autobind-decorator": "2.4.0",
|
"autobind-decorator": "2.4.0",
|
||||||
"canvas": "2.5.0",
|
"canvas": "2.6.1",
|
||||||
"chalk": "2.4.2",
|
"chalk": "4.1.0",
|
||||||
"lokijs": "1.5.6",
|
"lokijs": "1.5.11",
|
||||||
"mecab-async": "0.1.2",
|
"mecab-async": "0.1.2",
|
||||||
"misskey-reversi": "0.0.5",
|
"misskey-reversi": "0.0.5",
|
||||||
"promise-retry": "1.1.1",
|
"promise-retry": "2.0.1",
|
||||||
"random-seed": "0.3.0",
|
"random-seed": "0.3.0",
|
||||||
"reconnecting-websocket": "4.1.10",
|
"reconnecting-websocket": "4.4.0",
|
||||||
"request": "2.88.0",
|
"request": "2.88.2",
|
||||||
"request-promise-native": "1.0.7",
|
"request-promise-native": "1.0.9",
|
||||||
"seedrandom": "2.4.3",
|
"seedrandom": "3.0.5",
|
||||||
"timeout-as-promise": "1.0.0",
|
"timeout-as-promise": "1.0.0",
|
||||||
"ts-node": "8.0.3",
|
"ts-node": "9.0.0",
|
||||||
"typescript": "3.4.5",
|
"typescript": "4.0.2",
|
||||||
"uuid": "3.3.2",
|
"uuid": "8.3.0",
|
||||||
"ws": "6.2.1"
|
"ws": "7.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ import * as fs from 'fs';
|
||||||
import autobind from 'autobind-decorator';
|
import autobind from 'autobind-decorator';
|
||||||
import * as loki from 'lokijs';
|
import * as loki from 'lokijs';
|
||||||
import * as request from 'request-promise-native';
|
import * as request from 'request-promise-native';
|
||||||
import chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
import * as uuid from 'uuid/v4';
|
import { v4 as uuid } from 'uuid';
|
||||||
const delay = require('timeout-as-promise');
|
const delay = require('timeout-as-promise');
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
// AiOS bootstrapper
|
// AiOS bootstrapper
|
||||||
|
|
||||||
|
import * as chalk from 'chalk';
|
||||||
|
import * as request from 'request-promise-native';
|
||||||
|
const promiseRetry = require('promise-retry');
|
||||||
|
|
||||||
import 藍 from './ai';
|
import 藍 from './ai';
|
||||||
import config from './config';
|
import config from './config';
|
||||||
import _log from './utils/log';
|
import _log from './utils/log';
|
||||||
|
@ -22,10 +26,6 @@ import ValentineModule from './modules/valentine';
|
||||||
import MazeModule from './modules/maze';
|
import MazeModule from './modules/maze';
|
||||||
import ChartModule from './modules/chart';
|
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(' /__\\ (_ _)( _ )/ __)');
|
console.log(' /__\\ (_ _)( _ )/ __)');
|
||||||
console.log(' /(__)\\ _)(_ )(_)( \\__ \\');
|
console.log(' /(__)\\ _)(_ )(_)( \\__ \\');
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
import autobind from 'autobind-decorator';
|
import autobind from 'autobind-decorator';
|
||||||
|
import * as chalk from 'chalk';
|
||||||
|
const delay = require('timeout-as-promise');
|
||||||
|
|
||||||
import 藍 from './ai';
|
import 藍 from './ai';
|
||||||
import Friend from './friend';
|
import Friend from './friend';
|
||||||
import { User } from './misskey/user';
|
import { User } from './misskey/user';
|
||||||
import includes from './utils/includes';
|
import includes from './utils/includes';
|
||||||
import or from './utils/or';
|
import or from './utils/or';
|
||||||
import chalk from 'chalk';
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
const delay = require('timeout-as-promise');
|
|
||||||
|
|
||||||
export default class Message {
|
export default class Message {
|
||||||
private ai: 藍;
|
private ai: 藍;
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default class extends Module {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ai.on('message', msg => {
|
ai.on('message', (msg: Record<string, any>) => {
|
||||||
if (msg.type == 'put') {
|
if (msg.type == 'put') {
|
||||||
gw.send('set', {
|
gw.send('set', {
|
||||||
pos: msg.pos
|
pos: msg.pos
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
|
|
||||||
export default function(msg: string) {
|
export default function(msg: string) {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
|
Loading…
Reference in a new issue