Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brycecanyoncounty/bcc-discord
A RedM standalone Discord Webhook API system.
https://github.com/brycecanyoncounty/bcc-discord
cfx discord fivem redm vorp vorpcore
Last synced: 10 days ago
JSON representation
A RedM standalone Discord Webhook API system.
- Host: GitHub
- URL: https://github.com/brycecanyoncounty/bcc-discord
- Owner: BryceCanyonCounty
- License: gpl-2.0
- Created: 2022-10-13T05:46:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T23:52:04.000Z (about 1 year ago)
- Last Synced: 2023-09-27T07:50:34.900Z (about 1 year ago)
- Topics: cfx, discord, fivem, redm, vorp, vorpcore
- Language: Lua
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BCC Anti Cheat
> A RedM standalone Discord Webhook API system.## How to install
* Download this repo
* Copy and paste `bcc-discord` folder to `resources/bcc-discord`
* Add `ensure bcc-discord` to your `server.cfg` file (ABOVE any scripts that use it)
* Now you are ready to get coding!## API Docs
### Discord Webhooks
This API allows you to easily add [Discord webhooks](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) messages to your scripts.
#### SendMessage
```lua
local discord = exports['bcc-discord'].initiate()discord.sendMessage('webhookurl', 'My Script', 'https://cdn2.iconfinder.com/data/icons/frosted-glass/256/Danger.png', 'user123', 'this user is awesome')
```#### embeds
> Add custom [embeds](https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html)
```lua
local discord = exports['bcc-discord'].initiate()discord.sendMessage('webhookurl', 'My Script', 'https://cdn2.iconfinder.com/data/icons/frosted-glass/256/Danger.png', 'user123', 'this user is awesome'{
{
{
color = 11342935,
title = 'some times',
description = 'awesomesauce'
},
{
color = 11342935,
title = 'some other time',
description = 'awesomesauce'
},
}
})
```
## Need More Support?
- [BCC Discord](https://discord.gg/cQMJaTqcqJ)## Requirements
- NONE! It's standalone.