Skip to content

Commit a69164b

Browse files
Merge pull request #24 from sharpkeen/sharpkeen-patch-message-change
Update plugin.rb
2 parents 54e73ba + 5e3247e commit a69164b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ def send_pm(title, text, user)
162162
PostDestroyer.new(Discourse.system_user, post).destroy
163163
end
164164
elsif raw[8, 11] == "code_sample" then
165-
text = "Hello @" + oPost.user.username + ", please refer to this topic for posting your code sample. Thanks. https://forum.codewizardshq.com/t/how-to-post-code-samples/21423/1"
165+
text = "Hello @" + topic.user.username + ", it appears that you have not posted a sample of your code or your code sample is not formatted properly. In order to receive bettter assistance, please refer to this link for guidance on posting your code properly. Thanks. https://forum.codewizardshq.com/t/how-to-post-code-samples/21423/1"
166166
create_post(post.topic_id, text)
167167
log_command("received code_sample message", "https://forum.codewizardshq.com/t/#{post.topic_id}", oPost.user.username)
168168
PostDestroyer.new(Discourse.system_user, post).destroy
169169
elsif raw[8,12] == "project_link" then
170-
text = "Hello @" + oPost.user.username + ", please refer to this topic for posting the link to your project. https://forum.codewizardshq.com/t/how-to-post-project-links/21426/1"
170+
text = "Hello @" + topic.user.username + ", it appears that you have not posted a link to your project. In order to receive further or better assistance, please refer to this link as a guidance to posting a link to your project. Thanks. https://forum.codewizardshq.com/t/how-to-post-project-links/21426/1"
171171
create_post(post.topic_id, text)
172172
log_command("received project_link message", "https://forum.codewizardshq.com/t/#{post.topic_id}", oPost.user.username)
173173
PostDestroyer.new(Discourse.system_user, post).destroy

0 commit comments

Comments
 (0)