Comments (6)
embed=discord.Embed(title="%%%PLAYER%%% has pinged the map!", description="%%%%%CONGFIG:world_name%%%%%", color=%%%%%CONFIG:color%%%%%)
embed.set_author(name="%%%%%CONFIG:server_name%%%%%", icon_url="%%%%%CONFIG:imageURL2.png%%%%%")
embed.set_thumbnail(url="%%%%%CONFIG:imageURL1a.png%%%%%")
embed.add_field(name="coordinates:", value="%%%COORDINATES_FROM_MAP%%%", inline=False)
embed.set_footer(text="%%Date&time_TIMESTAMP%%")
await ctx.send(embed=embed)
from valheim-discordconnector.
It would be pretty awesome to do death messages in a similar format =]
instead of embeds, you could also do code blocks which allows more colors to be used.
example:
```diff
! Player123ABC !
- CONFIG death message here about how your character died of dysentery -
--- timestamp ---
*** coorditates: ***
! ( -123, 77, -365 ) !
embeds look better, and mobile won't display colors anyway, but it does look nice on the desktop as a code block with multiple colors
from valheim-discordconnector.
Server Startup & Shutdown messages would probably also look good as embeds
Starting: color=0xff0000
Running: color=0x00ff00
Stopping: color=0xffff00
from valheim-discordconnector.
These colors are the highlight color next to the embed? Is this JSON from your first post what you suggest for the messages?
{
"embed": {
"footer": {
"text": "%%Date&Time_TIMESTAMP%%"
},
"thumbnail": {
"width": 810,
"url": "%%%%%CONFIG:imageURL1a.png%%%%%",
"proxy_url": "%%%%%CONFIG:imageURL1b.png%%%%%",
"height": 810
},
"color": %%%%%CONFIG:color%%%%%,
"type": "rich",
"description": "%%%%%CONFIG:world_name%%%%%",
"fields": [{
"value": "%%%COORDINATES_FROM_MAP%%%",
"name": "coordinates:",
"inline": false
}],
"title": "%%PLAYER%% has pinged the map!",
"author": {
"name": "%%%%%CONFIG:server_name%%%%%",
"icon_url": "%%%%%CONFIG:imageURL2.png%%%%%"
}
}
}
from valheim-discordconnector.
correct, that is the color of the embed. I also made an example with python code below that. I use the json in Discord with bots etc...
from valheim-discordconnector.
discovered i could just do
md whatever I want as my message
from with in the config & discord will display it as a code block so I can do formatting that way and looks nice for some of the messages =]
wish I could ping roles with the messages, but it doesnt seem to pass the @name/role through
from valheim-discordconnector.
Related Issues (20)
- Welcome Message | Issue? HOT 3
- Capture and display SteamID and IP? HOT 6
- Enhancement Request - Quests & Marketplace events leaderboard
- Chat Shout | Potential Issue HOT 9
- Leaderboard Data Update | Issue HOT 1
- Update configuration documentation
- Toggle for Extra Logging HOT 1
- More specific death messages HOT 1
- more easy to look in discord channel with debug
- Server Start/Stop notifications when player leaves or joins HOT 2
- valheim update 0.216.9
- Make a way to display local IP when server start HOT 4
- [BUG] records.db isn't getting populated from records.db.log HOT 1
- [BUG] Player join/leave notifications no longer working HOT 1
- [Feature Request] A notification for when bosses are killed...
- Inquiry on web exception log HOT 1
- [BUG] TWO IPs displaying with webhook on discord instead of ONE HOT 2
- [BUG] Server fails to start with latest BepInEx 5.4.2201 HOT 3
- [BUG] looks like thunderstore kicked the mod - maybe a re-upload would be enough? HOT 3
- [BUG] The output for our current game includes stats from a previous world/game HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valheim-discordconnector.