[bot]: finalize ts move, guess i forgot /shrug

This commit is contained in:
41666 2019-06-05 06:28:47 -05:00
parent 8ad1735cc2
commit 3644e9482a
No known key found for this signature in database
GPG key ID: DE08FAA8925DC747
8 changed files with 10 additions and 30 deletions

View file

@ -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 }]
]
}

View file

@ -33,7 +33,7 @@ export default class Bot {
// $RPC: RPCClient // $RPC: RPCClient
// rpc: typeof RPCClient rpc: {[x: string]: Function}
commandCheck: RegExp = new RegExp(`^<@!?${process.env.DISCORD_CLIENT_ID}>`) commandCheck: RegExp = new RegExp(`^<@!?${process.env.DISCORD_CLIENT_ID}>`)

View file

@ -1,8 +1,7 @@
// @flow import { Command } from './_types'
import type { Command } from './_types'
import { withTyping } from '../utils' import { withTyping } from '../utils'
import type Bot from '../Bot' import Bot from '../Bot'
import type { Message } from 'eris' import { Message } from 'eris'
const cmds: Command[] = [ const cmds: Command[] = [
{ {

View file

@ -1,7 +1,6 @@
// @flow import { Command } from './_types'
import type { Command } from './_types' import Bot from '../Bot'
import type Bot from '../Bot' import { Message } from 'eris'
import type { Message } from 'eris'
import { withTyping } from '../utils' import { withTyping } from '../utils'
const cmds: Command[] = [ const cmds: Command[] = [

View file

@ -1,7 +1,6 @@
// @flow import { Command } from './_types'
import type { Command } from './_types' import Bot from '../Bot'
import type Bot from '../Bot' import { Message } from 'eris'
import type { Message } from 'eris'
const cmds: Command[] = [ const cmds: Command[] = [
{ {

View file

@ -1,4 +1,3 @@
// @flow
import 'dotenv/config' import 'dotenv/config'
import Bot from './Bot' import Bot from './Bot'

View file

@ -1,4 +1,3 @@
// @flow
import chalk from 'chalk' import chalk from 'chalk'
export class Logger { export class Logger {

View file

@ -1,4 +1,3 @@
// @flow
import Bot from './Bot' import Bot from './Bot'
import { Message } from 'eris' import { Message } from 'eris'