<feed xmlns='http://www.w3.org/2005/Atom'>
<title>watbot.git, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/'/>
<entry>
<title>Merge pull request 'Prevent dice overflow' (#27) from overflow into master</title>
<updated>2024-10-12T18:05:22+00:00</updated>
<author>
<name>Pratyush Desai</name>
</author>
<published>2024-10-12T18:05:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=67ef6fec1b6b4ca6b99701109b15f60a853dc5a2'/>
<id>67ef6fec1b6b4ca6b99701109b15f60a853dc5a2</id>
<content type='text'>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/27
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/27
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent dice overflow</title>
<updated>2024-10-10T16:43:46+00:00</updated>
<author>
<name>Georg Pfuetzenreuter</name>
</author>
<published>2024-10-10T00:33:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=930839ab58a60a5e3026de6f8a659fdcd8c25173'/>
<id>930839ab58a60a5e3026de6f8a659fdcd8c25173</id>
<content type='text'>
rand.Int() would panic when the max value is &lt;= 0, which happens when
big.NewInt() was fed with a too large number. Avoid this by validating
the big.NewInt() return beforehand. Add error handling to all callers to
both gracefully return to IRC and to log an error message.
Rename the shadowed "max" variable whilst at it to avoid confusion.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rand.Int() would panic when the max value is &lt;= 0, which happens when
big.NewInt() was fed with a too large number. Avoid this by validating
the big.NewInt() return beforehand. Add error handling to all callers to
both gracefully return to IRC and to log an error message.
Rename the shadowed "max" variable whilst at it to avoid confusion.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request 'Configurable database path' (#26) from config into master</title>
<updated>2024-10-10T14:56:19+00:00</updated>
<author>
<name>Pratyush Desai</name>
</author>
<published>2024-10-10T14:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=91b0e21b7ac29d11d7c6774c92c99f4640a1a8d1'/>
<id>91b0e21b7ac29d11d7c6774c92c99f4640a1a8d1</id>
<content type='text'>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/26
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/26
</pre>
</div>
</content>
</entry>
<entry>
<title>Configurable database path</title>
<updated>2024-10-09T22:04:16+00:00</updated>
<author>
<name>Georg Pfuetzenreuter</name>
</author>
<published>2024-10-09T22:04:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=dfe7deff72ec77f798efe243c1c22bb63c523040'/>
<id>dfe7deff72ec77f798efe243c1c22bb63c523040</id>
<content type='text'>
Allow the database file to reside in a user defined location instead of
requiring it to be in the working directory.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow the database file to reside in a user defined location instead of
requiring it to be in the working directory.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request 'Lower nickname in Jeopardy cashout' (#25) from jeopardylower into master</title>
<updated>2024-10-09T22:00:50+00:00</updated>
<author>
<name>Pratyush Desai</name>
</author>
<published>2024-10-09T22:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=e300f7137055a260c522fe546a75e528533cf812'/>
<id>e300f7137055a260c522fe546a75e528533cf812</id>
<content type='text'>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/25
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/25
</pre>
</div>
</content>
</entry>
<entry>
<title>Lower nickname in Jeopardy cashout</title>
<updated>2024-10-09T21:36:45+00:00</updated>
<author>
<name>Georg Pfuetzenreuter</name>
</author>
<published>2024-10-09T21:36:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=5ce4d4bfe461fff3581b6a955ccf9126b541f4dd'/>
<id>5ce4d4bfe461fff3581b6a955ccf9126b541f4dd</id>
<content type='text'>
Align with GetTarget() which is used in games to have consistent
handling of nicknames regardless of their casing.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Align with GetTarget() which is used in games to have consistent
handling of nicknames regardless of their casing.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request 'Improve Jeopardy cashout message' (#24) from jeopardymsg into master</title>
<updated>2024-10-03T17:55:50+00:00</updated>
<author>
<name>Pratyush Desai</name>
</author>
<published>2024-10-03T17:55:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=c4ff70da702f47e7d5499778ad791e0c8d9812aa'/>
<id>c4ff70da702f47e7d5499778ad791e0c8d9812aa</id>
<content type='text'>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/24
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/24
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve Jeopardy cashout message</title>
<updated>2024-10-03T17:43:39+00:00</updated>
<author>
<name>Georg Pfuetzenreuter</name>
</author>
<published>2024-10-03T13:25:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=7ec49a9769d10dd66e1c30f579aba715ea8e7447'/>
<id>7ec49a9769d10dd66e1c30f579aba715ea8e7447</id>
<content type='text'>
Print only a single message instead of one per winner to reduce chat
clutter.
Skip cashout to users who won less than the possible cashout value as
limited by the division value to avoid congratulating someone who only
gets 0.
Abort should a regression cause the logic to process an empty set of
finishers to prevent unexpected behavior.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Print only a single message instead of one per winner to reduce chat
clutter.
Skip cashout to users who won less than the possible cashout value as
limited by the division value to avoid congratulating someone who only
gets 0.
Abort should a regression cause the logic to process an empty set of
finishers to prevent unexpected behavior.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request 'Change host lookup to be optional' (#23) from dbhost into master</title>
<updated>2024-10-03T16:00:59+00:00</updated>
<author>
<name>Pratyush Desai</name>
</author>
<published>2024-10-03T16:00:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=b6187e007792836c3c29d6925a3fa97cb23791bf'/>
<id>b6187e007792836c3c29d6925a3fa97cb23791bf</id>
<content type='text'>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/23
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/23
</pre>
</div>
</content>
</entry>
<entry>
<title>Change host lookup to be optional</title>
<updated>2024-10-02T20:30:06+00:00</updated>
<author>
<name>Georg Pfuetzenreuter</name>
</author>
<published>2024-10-02T20:30:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.casa/watbot.git/commit/?id=accf16c92aa8420dd12d414ab05c60358cbc23ba'/>
<id>accf16c92aa8420dd12d414ab05c60358cbc23ba</id>
<content type='text'>
Some parts of the logic do not make use of the host column in the
players table, allow the field to be empty and do not query for an empty
value (which might return bogus entries) if no value is passed to the
lookup function.
This additionally avoids the need for the hardcoded initial host when
configuring the bot player.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some parts of the logic do not make use of the host column in the
players table, allow the field to be empty and do not query for an empty
value (which might return bogus entries) if no value is passed to the
lookup function.
This additionally avoids the need for the hardcoded initial host when
configuring the bot player.

Signed-off-by: Georg Pfuetzenreuter &lt;mail@georg-pfuetzenreuter.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
