Tabletop Simulator

Tabletop Simulator

评价数不足
Discord Invite Links
   
奖励
收藏
已收藏
取消收藏
Type: Utility
Complexity: Low Complexity
文件大小
发表于
更新日期
9.995 KB
2022 年 3 月 20 日 上午 7:55
2022 年 4 月 9 日 上午 12:49
4 项改动说明 ( 查看 )

订阅以下载
Discord Invite Links

描述
Formatting and API utility to send formatted invite links to Discord using Webhooks
CC0 https://creativecommons.org/publicdomain/zero/1.0/ Modify/Distribute freely

How do I get a webhook?
Discord makes it easy to create server/channel specific webhooks as a server owner/admin
Server Settings > Integrations > Webhooks > New Webhook to create one

What do I do with this webhook?
Copy the Webhook URL and paste it in to the assets name field, optionally change the webhook variable in the script to your link and set usescriptwebhook = false to usescriptwebhook = true

You can now send invite links with the !invite command from within Tabletop Simulator

Webhook information and good practices:
Without going in to the code and tech details, webhooks are links that allow external applications to post requests with content that gets sent to your Discord server/channel. In the hands of a malicious actor with rudimentary code knowledge they can be abused to spam with messages.

If this is a concern to you then it is strongly recommended that you set your webhook url in the script instead of using the publicly visible name field and only share the asset/link with users you trust. You can at any point just click on Delete Webhook to invalidate your link.
8 条留言
Kijan 2022 年 9 月 3 日 上午 1:57 
for people like me, how have problems, that the link does not work.
It only works, if your profile and your games are public
Mumu 2022 年 4 月 8 日 上午 8:41 
I'm not familiar with LUA but it doesn't work for me without changing the asset name.
However it works after I deleted the following script.
```
if usescriptwebhook == false then
webhook = self.getName()
end
```
It's quite convenient to save the object which could be easily used by other discord members. Thanks! :mhwgood:
ulia  [作者] 2022 年 3 月 27 日 下午 8:57 
wrong chat, use the game chat tab
Rabisco 2022 年 3 月 27 日 下午 6:55 
When I tip !help the program say's that I "must have one registered nick" someone knows how to fix it?
ulia  [作者] 2022 年 3 月 21 日 下午 12:07 
You can post your modification or "fork it" (reupload your version) if you want to provide that for users not familiar with scripting. I forgot to include it with the script but you can consider everything in the mod as CC0/Copyleft as it's more of a barebones proof of concept than something you would realistically deploy as is.
☭Shyster Effd☭ 2022 年 3 月 21 日 上午 11:54 
Also awesome work!
☭Shyster Effd☭ 2022 年 3 月 21 日 上午 11:54 
I added buttons to it since I'm super lazy typing in !help and !invite every time. If you want the code let me know. Honestly you could probably do it, since I did it in 5 minutes
3JA2 2022 年 3 月 20 日 上午 9:58 
Wow, This is one of the most cool workshops i've seen!
Thanks for the upload!:steamthumbsup::steamthis::steamhappy: