M4R774 / bobweb2

Telegram botti piristämään elämää
MIT License
8 stars 1 forks source link

Add quick systems message option to gpt command #244

Closed taturl closed 1 year ago

taturl commented 1 year ago

Sometimes you want to use different system messages quickly. With this PR we add an option to use one of ready-made system prompts (1, 2 or 3) when using gpt.

E.g.

/gpt /2 Can I have an answer in Finnish?

Prompts without quick message use the old per-channel saved system message as previously.

If this is good, we could add next options to customize the "save slots" for the three quick system prompts.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication