mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
[bot]: finalize ts move, guess i forgot /shrug
This commit is contained in:
parent
8ad1735cc2
commit
3644e9482a
8 changed files with 10 additions and 30 deletions
|
@ -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 }]
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -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}>`)
|
||||||
|
|
||||||
|
|
|
@ -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[] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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[] = [
|
||||||
|
|
|
@ -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[] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// @flow
|
|
||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
import Bot from './Bot'
|
import Bot from './Bot'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// @flow
|
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
|
|
||||||
export class Logger {
|
export class Logger {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// @flow
|
|
||||||
import Bot from './Bot'
|
import Bot from './Bot'
|
||||||
import { Message } from 'eris'
|
import { Message } from 'eris'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue