Skip to content

Commit

Permalink
Bug fixes.
Browse files Browse the repository at this point in the history
This commit fixes handleType is undefined bug introduced by prev commit.
It also fixes an error caused by a bug in Eris typings which is fixed in dev.
  • Loading branch information
retrixe committed Jun 12, 2018
1 parent b540a5e commit 61c3ec2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@material-ui/core": "^1.2.0",
"@material-ui/icons": "^1.1.0",
"apollo-boost": "^0.1.4",
"eris": "^0.8.6",
"eris": "abalabahaha/eris#dev",
"graphql": "^0.13.2",
"graphql-yoga": "^1.8.5",
"isomorphic-unfetch": "^2.0.0",
Expand Down
9 changes: 3 additions & 6 deletions server/bot/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Port server commands and move utils from index.ts to separate file.
// Tokens and stuff.
import 'json5/lib/require'
import { testPilots } from '../../config.json5'
// Commands.
import { handleEditLastSay, handleEdit, handleType } from './oldCommands/utilities'
import { handleEditLastSay, handleEdit } from './oldCommands/utilities'
import { handleWeather, handleCurrency, handleDefine } from './oldCommands/api'
import {
handleTakerole, handleGiverole, handleWarnings, handleClearwarns, handleRemovewarn
} from './oldCommands/admin'
import { handleClearwarns, handleRemovewarn, handleWarnings } from './oldCommands/admin/warn'
import { handleGiverole, handleTakerole } from './oldCommands/admin/roles'

// We need types.
import { client, DB, mongoDB, member, message } from './imports/types'
Expand Down Expand Up @@ -97,7 +95,6 @@ export default (client: client, tempDB: DB, db: mongoDB) => async (event: messag
'/weather': () => handleWeather(message, sendResponse, client, channelID),
'/wt': () => handleWeather(message, sendResponse, client, channelID),
// Say.
'/type': () => handleType(event, sendResponse, client, testPilot, tempDB),
'/editLastSay': () => handleEditLastSay(event, sendResponse, client, testPilot, tempDB),
'/els': () => handleEditLastSay(event, sendResponse, client, testPilot, tempDB),
'/edit': () => handleEdit(event, sendResponse, client),
Expand Down
3 changes: 0 additions & 3 deletions server/bot/oldCommands/admin/index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2677,9 +2677,9 @@ equal-length@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/equal-length/-/equal-length-1.0.1.tgz#21ca112d48ab24b4e1e7ffc0e5339d31fdfc274c"

eris@^0.8.6:
eris@abalabahaha/eris#dev:
version "0.8.6"
resolved "https://registry.yarnpkg.com/eris/-/eris-0.8.6.tgz#507a3b909b39a4b82bf7dfd70f5c60e34dd47454"
resolved "https://codeload.github.com/abalabahaha/eris/tar.gz/d02ca9f99f84d402b7b09933212d315153b73c09"
dependencies:
ws "^5.2.0"
optionalDependencies:
Expand Down

0 comments on commit 61c3ec2

Please sign in to comment.