Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
refactor(index.js): removes the unkownCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps committed Jan 6, 2021
1 parent c4bd350 commit b6c14d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![CodeFactor](https://www.codefactor.io/repository/github/animafps/fpsmath/badge/main?style=flat-square)](https://www.codefactor.io/repository/github/animafps/fpsmath/overview/main)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/AnimaFPS/FPSMath/CI?logo=github&style=flat-square)](https://github.com/AnimaFPS/FPSMath/Actions)

[![Discord Bots](https://top.gg/api/widget/792712521546465301.svg)](https://top.gg/bot/792712521546465301)

## Installing

[Install This Bot on Your Server](https://discordapp.com/api/oauth2/authorize?client_id=792712521546465301&scope=bot&permissions=10240) or DM `FPS Math#9838` with the commands outside of a server
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ client.setProvider(new commando.SyncSQLiteProvider(db));

client.registry
.registerGroup('math', 'Math')
.registerDefaults()
.registerDefaultGroups()
.registerDefaultTypes()
.registerDefaultCommands({ unknownCommand: false })
.registerTypesIn(path.join(__dirname, '/src/types'))
.registerCommandsIn(path.join(__dirname, '/src/commands'));

Expand Down

0 comments on commit b6c14d4

Please sign in to comment.