Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceitem committed Feb 13, 2022
2 parents 99727c0 + 18659fa commit d0e373d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Full.md
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ See [`dc_build_embed()`](https://github.com/replaceitem/carpet-discarpet/blob/ma
```py
__config() -> {'scope'->'global','bot'->'BOT','stay_loaded'->false};

global_chat = dc_channel_from_id('YOUR CHANNEL ID');
global_chat = dc_channel_from_id('789877643070799902');

global_rec = 0;

Expand All @@ -1061,6 +1061,8 @@ __on_discord_message(message) -> (
for(player('all'),
col = 'd'; // this could be replaced with a custom way of fetching user color
if(col == null,col = 'w');
col = dc_get_user_color(message~'user',message~'server');
if(col==null,col='#FFFFFF');
print(_,format(str('%s [%s]',col,dc_get_display_name(message~'user',message~'server')))+format(str('w %s',message~'readable_content')))
);
);
Expand Down

0 comments on commit d0e373d

Please sign in to comment.