Merge pull request #99 from DjDeveloperr/slash

Use a fork of Denoflate to have cache-able WASM
This commit is contained in:
DjDeveloper 2021-01-30 18:33:32 +05:30 committed by GitHub
commit dbb80f30b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
export { EventEmitter } from 'https://deno.land/x/event@0.2.1/mod.ts'
export { unzlib } from 'https://deno.land/x/denoflate@1.1/mod.ts'
export { unzlib } from 'https://raw.githubusercontent.com/DjDeveloperr/denoflate/master/mod.ts'
export { fetchAuto } from 'https://raw.githubusercontent.com/DjDeveloperr/fetch-base64/main/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'

View File

@ -170,7 +170,10 @@ client.on('messageCreate', async (msg: Message) => {
)
} else if (msg.content === '!textfile') {
msg.channel.send({
file: new MessageAttachment('hello.txt', 'hello world')
files: [
new MessageAttachment('hello.txt', 'world'),
new MessageAttachment('world.txt', 'hello')
]
})
} else if (msg.content === '!join') {
if (msg.member === undefined) return