discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot
Blake Erickson 80a80ef2bd DEV: Use method instead of constant for discobot badge names
This change refactors the code a bit so that a plugin could easily
replace which badge is awarded when completing the discobot new user
tutorial and advanced tutorial.

By adding a static method and putting the BADGE_NAME constant inside of
that method we can simply call that method now instead of the constant.
A plugin could then `class_eval` that method and replace it with
whatever badge name they choose. This is way cleaner than having the
plugin change the frozen constant! eeek.
2020-04-09 20:46:51 -06:00
..
templates FIX: Narrative Bot certificates are ERB templates (#8174) 2019-10-09 17:45:01 +11:00
actions.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
advanced_user_narrative.rb DEV: Use method instead of constant for discobot badge names 2020-04-09 20:46:51 -06:00
base.rb DEV: Use method instead of constant for discobot badge names 2020-04-09 20:46:51 -06:00
certificate_generator.rb DEV: send url string to FileHelper and refactor another open-uri call 2019-11-14 08:25:30 -07:00
dice.rb Fix the build take 2. 2019-05-13 11:22:48 +08:00
magic_8_ball.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
new_user_narrative.rb DEV: Use method instead of constant for discobot badge names 2020-04-09 20:46:51 -06:00
quote_generator.rb FIX: Use the quote generator in the example text 2019-10-16 13:40:44 -04:00
track_selector.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
welcome_post_type_site_setting.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00