Skip to content

Commit

Permalink
fix: read tags from JSON object menu
Browse files Browse the repository at this point in the history
  • Loading branch information
benchambule committed Jul 27, 2024
1 parent 90a544e commit d40b0c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ async function process_options(request, tags, context){
if(request.prompt.toString() === value.key.toString()){
request.selected_option = value;

if(request.selected_option.tags){
tags = {...tags, ...request.selected_option.tags};
}

const interceptor = context.bot.getInterceptor(value.menu);
if(interceptor){
if(context.bot.debug){
Expand Down

0 comments on commit d40b0c1

Please sign in to comment.