Skip to content

Commit fc74b66

Browse files
committed
Reset created clients after command execution
1 parent 337ad45 commit fc74b66

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bin/discord

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ bot.interaction_create do |event|
120120
end
121121

122122
event.edit_response(embeds: [Discordrb::Webhooks::Embed.new(description: result, color: color)])
123+
124+
Pyxis::GithubClient::CLIENT_CONFIGS.each_value do |config|
125+
config[:octokit] = nil
126+
end
127+
Pyxis::GitlabClient::CLIENT_CONFIGS.each_value do |config|
128+
config[:client] = nil
129+
end
123130
end
124131

125132
bot.run

0 commit comments

Comments
 (0)