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

Commit

Permalink
Create attachment.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSpen authored May 1, 2021
1 parent 2bfb0f5 commit 61b1e11
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions functions/attachment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# $attachment
Adds an attachment to the bot's message.

## Usage
```$attachment[url;(optional) file name]```

### Breakdown
`url` - The URL that the bot makes the attachment from.

`file name` - Sets the name of the attachment. Optional.

## Example
```
bot.command({
type: "command",
name: "cat",
code: `$attachment[https://cataas.com/cat;cute cat]`
})
```

0 comments on commit 61b1e11

Please sign in to comment.