Spaces:
Paused
Paused
Download plugins/ping.js from levantermd/lyfe1: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/ping.js
- Command line
-
hf download hf://spaces/levantermd/lyfe1/plugins/ping.js
-
curl -L -o ping.js https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/ping.js
348 Bytes
| const { bot } = require('../lib/') | |
| bot( | |
| { | |
| pattern: 'ping ?(.*)', | |
| desc: 'To check ping', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| const start = new Date().getTime() | |
| await message.send('```Ping!```') | |
| const end = new Date().getTime() | |
| return await message.send('*Pong!*\n ```' + (end - start) + '``` *ms*') | |
| } | |
| ) | |