From 3644e9482a2c419ab8b565cbb6ec75458ffc77d9 Mon Sep 17 00:00:00 2001 From: Katalina T Date: Wed, 5 Jun 2019 06:28:47 -0500 Subject: [PATCH] [bot]: finalize ts move, guess i forgot /shrug --- packages/roleypoly-bot/.babelrc | 14 -------------- packages/roleypoly-bot/src/Bot.ts | 2 +- packages/roleypoly-bot/src/commands/dm.ts | 7 +++---- packages/roleypoly-bot/src/commands/root.ts | 7 +++---- packages/roleypoly-bot/src/commands/text.ts | 7 +++---- packages/roleypoly-bot/src/index.ts | 1 - packages/roleypoly-bot/src/logger.ts | 1 - packages/roleypoly-bot/src/utils.ts | 1 - 8 files changed, 10 insertions(+), 30 deletions(-) delete mode 100644 packages/roleypoly-bot/.babelrc diff --git a/packages/roleypoly-bot/.babelrc b/packages/roleypoly-bot/.babelrc deleted file mode 100644 index 5073193..0000000 --- a/packages/roleypoly-bot/.babelrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "presets": [ ["@babel/preset-env", { - "targets": { - "node": true - } - }], "@babel/preset-flow" ], - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-optional-chaining", - ["@babel/plugin-transform-runtime", - { "helpers": false }] - ] -} diff --git a/packages/roleypoly-bot/src/Bot.ts b/packages/roleypoly-bot/src/Bot.ts index e96fa1a..79100f1 100644 --- a/packages/roleypoly-bot/src/Bot.ts +++ b/packages/roleypoly-bot/src/Bot.ts @@ -33,7 +33,7 @@ export default class Bot { // $RPC: RPCClient - // rpc: typeof RPCClient + rpc: {[x: string]: Function} commandCheck: RegExp = new RegExp(`^<@!?${process.env.DISCORD_CLIENT_ID}>`) diff --git a/packages/roleypoly-bot/src/commands/dm.ts b/packages/roleypoly-bot/src/commands/dm.ts index 5251f84..a87bd7f 100644 --- a/packages/roleypoly-bot/src/commands/dm.ts +++ b/packages/roleypoly-bot/src/commands/dm.ts @@ -1,8 +1,7 @@ -// @flow -import type { Command } from './_types' +import { Command } from './_types' import { withTyping } from '../utils' -import type Bot from '../Bot' -import type { Message } from 'eris' +import Bot from '../Bot' +import { Message } from 'eris' const cmds: Command[] = [ { diff --git a/packages/roleypoly-bot/src/commands/root.ts b/packages/roleypoly-bot/src/commands/root.ts index ce19faa..2471adf 100644 --- a/packages/roleypoly-bot/src/commands/root.ts +++ b/packages/roleypoly-bot/src/commands/root.ts @@ -1,7 +1,6 @@ -// @flow -import type { Command } from './_types' -import type Bot from '../Bot' -import type { Message } from 'eris' +import { Command } from './_types' +import Bot from '../Bot' +import { Message } from 'eris' import { withTyping } from '../utils' const cmds: Command[] = [ diff --git a/packages/roleypoly-bot/src/commands/text.ts b/packages/roleypoly-bot/src/commands/text.ts index 4f080b8..25b6e32 100644 --- a/packages/roleypoly-bot/src/commands/text.ts +++ b/packages/roleypoly-bot/src/commands/text.ts @@ -1,7 +1,6 @@ -// @flow -import type { Command } from './_types' -import type Bot from '../Bot' -import type { Message } from 'eris' +import { Command } from './_types' +import Bot from '../Bot' +import { Message } from 'eris' const cmds: Command[] = [ { diff --git a/packages/roleypoly-bot/src/index.ts b/packages/roleypoly-bot/src/index.ts index acc3597..2ff757a 100644 --- a/packages/roleypoly-bot/src/index.ts +++ b/packages/roleypoly-bot/src/index.ts @@ -1,4 +1,3 @@ -// @flow import 'dotenv/config' import Bot from './Bot' diff --git a/packages/roleypoly-bot/src/logger.ts b/packages/roleypoly-bot/src/logger.ts index ccb7beb..9183613 100644 --- a/packages/roleypoly-bot/src/logger.ts +++ b/packages/roleypoly-bot/src/logger.ts @@ -1,4 +1,3 @@ -// @flow import chalk from 'chalk' export class Logger { diff --git a/packages/roleypoly-bot/src/utils.ts b/packages/roleypoly-bot/src/utils.ts index d68d956..415dd0b 100644 --- a/packages/roleypoly-bot/src/utils.ts +++ b/packages/roleypoly-bot/src/utils.ts @@ -1,4 +1,3 @@ -// @flow import Bot from './Bot' import { Message } from 'eris'