🐛 Temporary remove quote grouping
This commit is contained in:
parent
7669ded67c
commit
1cdcf045ad
1
deps.ts
1
deps.ts
|
@ -1,7 +1,6 @@
|
||||||
export { EventEmitter } from 'https://deno.land/x/event@0.2.1/mod.ts'
|
export { EventEmitter } from 'https://deno.land/x/event@0.2.1/mod.ts'
|
||||||
export { unzlib } from 'https://denopkg.com/DjDeveloperr/denoflate@1.2/mod.ts'
|
export { unzlib } from 'https://denopkg.com/DjDeveloperr/denoflate@1.2/mod.ts'
|
||||||
export { fetchAuto } from 'https://deno.land/x/fetchbase64@1.0.0/mod.ts'
|
export { fetchAuto } from 'https://deno.land/x/fetchbase64@1.0.0/mod.ts'
|
||||||
export { parse } from 'https://deno.land/x/mutil@0.1.2/mod.ts'
|
|
||||||
export { connect } from 'https://deno.land/x/redis@v0.14.1/mod.ts'
|
export { connect } from 'https://deno.land/x/redis@v0.14.1/mod.ts'
|
||||||
export type {
|
export type {
|
||||||
Redis,
|
Redis,
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { User } from '../structures/user.ts'
|
||||||
import { Collection } from '../utils/collection.ts'
|
import { Collection } from '../utils/collection.ts'
|
||||||
import { CommandClient } from './commandClient.ts'
|
import { CommandClient } from './commandClient.ts'
|
||||||
import { Extension } from './extensions.ts'
|
import { Extension } from './extensions.ts'
|
||||||
import { join, parse, walk } from '../../deps.ts'
|
import { join, walk } from '../../deps.ts'
|
||||||
|
|
||||||
export interface CommandContext {
|
export interface CommandContext {
|
||||||
/** The Client object */
|
/** The Client object */
|
||||||
|
@ -599,7 +599,7 @@ export const parseCommand = (
|
||||||
): ParsedCommand | undefined => {
|
): ParsedCommand | undefined => {
|
||||||
let content = msg.content.slice(prefix.length)
|
let content = msg.content.slice(prefix.length)
|
||||||
if (client.spacesAfterPrefix === true) content = content.trim()
|
if (client.spacesAfterPrefix === true) content = content.trim()
|
||||||
const args = parse(content)._.map((e) => e.toString())
|
const args = content.split(' ')
|
||||||
|
|
||||||
const name = args.shift()
|
const name = args.shift()
|
||||||
if (name === undefined) return
|
if (name === undefined) return
|
||||||
|
|
|
@ -139,7 +139,7 @@ client.on('messageReactionRemoveAll', (message) => {
|
||||||
|
|
||||||
// client.on('raw', (evt: string) => console.log(`EVENT: ${evt}`))
|
// client.on('raw', (evt: string) => console.log(`EVENT: ${evt}`))
|
||||||
|
|
||||||
const files = Deno.readDirSync('./src/test/cmds')
|
const files = Deno.readDirSync('cmds')
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const module = await import(`./cmds/${file.name}`)
|
const module = await import(`./cmds/${file.name}`)
|
||||||
|
|
|
@ -5,6 +5,7 @@ export default class PingCommand extends Command {
|
||||||
name = 'ping'
|
name = 'ping'
|
||||||
|
|
||||||
execute(ctx: CommandContext): void {
|
execute(ctx: CommandContext): void {
|
||||||
|
console.log(ctx.args, ctx.argString)
|
||||||
ctx.message.reply(`Pong! Latency: ${ctx.client.ping}ms`)
|
ctx.message.reply(`Pong! Latency: ${ctx.client.ping}ms`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue