Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Pointshow Slackbot response #56

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 9c7718cddb229150791d8f8d13961979/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bSWb0KdC7DoyyMnD5Bw9O3EVJARZCZRHrR8W4MMcNv1ebL42A2PzvtCAG9B6wgUX_2-xxy6OSLMRnAxfDn0Y3l2pVBGzDwwop_HM7Y2aKeOKQk2p2s6Zg0lf-0gCV3NdkANtQQKm1Vz7sN_R301QRFf8cFqcsZ89Vj3SIM3UEEdeZFjnAurN_0vyD-28y_iQSvZI_jD0WFDyTkHwHAy1xnaKitmOmmPkfCLUEYdcEk5-ShK5jA5P2c7Z4ech1CEcLiG-7JQ7cXK1viy6qhOjArdWF3L3hPTFlovx2ES_CIs90V8_4v7uCjvdA9CQ4FgTNYGq4ngOthUmpvY9E3mq1YOkCdqc0VTA35ml3YcytW_L_0a4maTJsIj_Od-5eLH-dNW2kSVNf2xkVrxGrv9wFYX0YXJ-2yh8yIyypUNn704c1iuFd93p09ysB9HcUy-50U709H5Hwz7qVQ-sjjcmQWpeBFFIdOsLZFp3gwAf2UsuzYSdqGVsoKPmlapgbyPlLbI785zjquiThLNR4G_Bq3bnom4kdmeY035oQpQrGC1ZQ8Ac-o-cKEVBzqx0hKWcBxQPKPoPxTDf3vNB-xTrABvwkifdXT1fqcqFevvJTnFZIWKUd4fmGdap8u7ffLpHRPSo5x8XqH__XZzk2MVme4YZZmj6CkDAD4dbVayT6jA
ETRabqT-NvoEVadKxSS6gprOOmo-9nLqKCDeZbedhi3a-Dp4CUTND0O3WOPCKKI76ZhuvVGwm8jmGHocB_HXtqTlVdvliqAnAzFDvr2qUrOcYt-TcxFQx2RGER1NyYTgshJJGb_wIXz0AZIaCBF2i_nBcycihaxvEr3y9nx3agc4-vg4MQKiHKLaFLEGpCJ3OF824pupX9jNVu4D7yz0jVEZnVZYl6QdKvjYKokT34oq-rx1qqx_JfAWlRMWTv4LBMxkQ0mM9K2tV8ArPxptx7Ds2sUrcRbGCOnOj9yjJMPdNBgJFxAuHruLdcgMYE0UVvJj1OCWxl3kTMexBsDGzl5qq8bV-UJDbRcemYtEQuhl2EKII-5gCnBNAf4uOAj4OUNrSUF_L3w5oGdXjwmLFHyBJuZQBeSh8iBYq1RRWqS8qATxJaph_YGJmDvk7Ethl-rAHiZylh9G5hVe0mfDmpGVdOFwDMuLNVmSSp_q1HkdsLXiv1qUXO1OzCSRIkZU_e93wnFAiFKCP2LmlXaBDmjVTL3pKSddoE-rrBufjeijHUNyBXCgkH5iDBBBmn27vFwyIUNNwSjxiEZhkk_54M_lVKFEMQBRRVyl-CpsyAFJjxC2NNbSXMQZAhaGKBTBHeQPmdlwHhE52E4Tyr7DRrO0O8_sals5x1dONo6z2X0
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?><record_update sys_domain="global" table="sys_script">
<sys_script action="INSERT_OR_UPDATE">
<abort_action>false</abort_action>
<access>package_private</access>
<action_delete>false</action_delete>
<action_insert>true</action_insert>
<action_query>false</action_query>
<action_update>false</action_update>
<active>true</active>
<add_message>false</add_message>
<advanced>true</advanced>
<change_fields>false</change_fields>
<client_callable>false</client_callable>
<collection>x_snc_pointsthing_chat</collection>
<condition/>
<description/>
<execute_function>false</execute_function>
<filter_condition/>
<is_rest>false</is_rest>
<message/>
<name>Handle Points How</name>
<order>100</order>
<priority>100</priority>
<rest_method/>
<rest_method_text/>
<rest_service/>
<rest_service_text/>
<rest_variables/>
<role_conditions/>
<script><![CDATA[(function executeRule(current, previous /*null when async*/) {

var phMatches = current.text.match(/!(pointshow|points_how|pointsexplained|points_explained)/gmi);

if (phMatches) {
new x_snc_pointsthing.PointsThing().points_how(current, true);
}

})(current, previous);]]></script>
<sys_class_name>sys_script</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-09 02:26:55</sys_created_on>
<sys_domain>global</sys_domain>
<sys_domain_path>/</sys_domain_path>
<sys_id>072e0c4353c5d210a44558e0a0490e9d</sys_id>
<sys_mod_count>3</sys_mod_count>
<sys_name>Handle Points How</sys_name>
<sys_overrides/>
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package>
<sys_policy/>
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope>
<sys_update_name>sys_script_072e0c4353c5d210a44558e0a0490e9d</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-09 03:04:51</sys_updated_on>
<template/>
<when>async_always</when>
</sys_script>
<sys_translated_text action="delete_multiple" query="documentkey=072e0c4353c5d210a44558e0a0490e9d"/>
<sys_es_latest_script action="INSERT_OR_UPDATE">
<id>072e0c4353c5d210a44558e0a0490e9d</id>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-09 02:27:09</sys_created_on>
<sys_id>829e848753c5d210a44558e0a0490e2a</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-09 02:27:09</sys_updated_on>
<table>sys_script</table>
<use_es_latest>false</use_es_latest>
</sys_es_latest_script>
</record_update>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<caller_access/>
<client_callable>false</client_callable>
<description/>
<mobile_callable>false</mobile_callable>
<name>PointsThing</name>
<sandbox_callable>false</sandbox_callable>
<script><![CDATA[var PointsThing = Class.create();
PointsThing.prototype = {
initialize: function() {
Expand Down Expand Up @@ -384,19 +386,47 @@ PointsThing.prototype = {

this.broadcast_points(recipients, chat_gr);
},

points_how: function(chat_gr) {
var phMessage =
"*`@mention ++`* will give points to the person mentioned." +
`If you're in a thread use !рointsparty or !рр to give points to everyone who replied. The Points Thing bot will say how many points the user has received in the past three months. It will also say their all-time points.

The top three scorers will also have a:
:first_place_medal: :second_place_medal: :third_place_medal:

Users in the top:
5% will have :star2:
10% will have :star:
25% will have :sparkles:
`.trim();

this.send_chat(chat_gr, phMessage, false);
},
type: 'PointsThing'
};]]></script>
<sys_class_name>sys_script_include</sys_class_name>
<sys_created_by>earl.duque</sys_created_by>
<sys_created_on>2022-10-13 03:22:36</sys_created_on>
<sys_id>88dd9085db629150791d8f8d13961998</sys_id>
<sys_mod_count>21</sys_mod_count>
<sys_mod_count>33</sys_mod_count>
<sys_name>PointsThing</sys_name>
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package>
<sys_policy>read</sys_policy>
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope>
<sys_update_name>sys_script_include_88dd9085db629150791d8f8d13961998</sys_update_name>
<sys_updated_by>eriemer</sys_updated_by>
<sys_updated_on>2024-04-15 20:14:22</sys_updated_on>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-09 03:03:52</sys_updated_on>
</sys_script_include>
<sys_es_latest_script action="INSERT_OR_UPDATE">
<id>88dd9085db629150791d8f8d13961998</id>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-09 02:24:59</sys_created_on>
<sys_id>9a1e044753c5d210a44558e0a0490e48</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-09 02:24:59</sys_updated_on>
<table>sys_script_include</table>
<use_es_latest>true</use_es_latest>
</sys_es_latest_script>
</record_update>
Loading