forked from CKacha/CoinFlipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (109 loc) · 3.97 KB
/
index.html
File metadata and controls
115 lines (109 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Gambler — Slack Bot</title>
<link rel="stylesheet" href="style.css" />
<script defer src="script.js"></script>
</head>
<body>
<header class="site-header">
<div class="container">
<h1>Gambler</h1>
<p class="tagline">A small Slack bot for friendly wagers, coin flips, and simple challenges.</p>
<nav class="top-nav" aria-label="Sections">
<a href="#about">About</a>
<a href="#getting-started">Getting started</a>
<a href="#commands">Commands</a>
<a href="#challenge">Challenges</a>
<a href="#reactions">Reactions</a>
</nav>
</div>
</header>
<main class="container">
<section id="about">
<h2>About</h2>
<p>
Gambler runs lightweight games and coin bets inside Slack. It uses slash commands,
ephemeral buttons, and threads to keep channels tidy.
</p>
</section>
<section id="getting-started">
<h2>Getting started</h2>
<ol>
<li>Invite the app to a channel: <code>/invite @Gambler</code></li>
<li>Opt in by reacting with your workspace’s coin emoji (e.g. <code>:siege-coin:</code>)</li>
<li>Optional activity feed: <code>/see on</code> or <code>/see off</code></li>
</ol>
</section>
<section id="commands">
<h2>Commands</h2>
<table class="cmds">
<thead>
<tr><th>Command</th><th>What it does</th></tr>
</thead>
<tbody>
<tr>
<td><code>/coin</code></td>
<td>Show your coin balance and streak summary (ephemeral).</td>
</tr>
<tr>
<td><code>/leaderboard</code></td>
<td>Top 10 balances. Posts to the channel.</td>
</tr>
<tr>
<td><code>/challenge</code></td>
<td>Start a match. The opponent gets private <em>Accept / Decline</em> buttons.</td>
</tr>
<tr>
<td><code>/see on</code> · <code>/see off</code></td>
<td>Toggle whether you see public activity from the bot.</td>
</tr>
<tr>
<td><code>/shop</code></td>
<td>Show items you can buy with coins.</td>
</tr>
<tr>
<td><code>/buy saver</code> · <code>/buy sigma</code></td>
<td>Purchase a streak saver or keep coins through weekly reset.</td>
</tr>
<tr>
<td><code>/stopgambling</code></td>
<td>Opt out. The bot won’t react to you or show activity.</td>
</tr>
<tr>
<td><code>/listusers</code></td>
<td>(Debug) List a few workspace users the bot can see.</td>
</tr>
</tbody>
</table>
</section>
<section id="challenge">
<h2>Challenges</h2>
<ol>
<li>Run <code>/challenge</code> and pick an opponent and stake.</li>
<li>The opponent receives private <em>Accept / Decline</em> buttons (only they can press them).</li>
<li>On accept, stakes lock and the game runs in a thread.</li>
<li>Winner takes the pot; all transactions are logged.</li>
</ol>
<p class="muted">Outsiders tapping the buttons get a private “not allowed” message.</p>
</section>
<section id="reactions">
<h2>Reactions</h2>
<ul>
<li>Messages containing “coin” → coin reaction</li>
<li>“gamble” / “gambling” → hype reply + game die reaction</li>
<li>“win” / “won” → celebratory reaction</li>
<li>“lose” / “lost” → sad reaction</li>
</ul>
<p class="muted">Custom emoji fall back to standard ones if not present.</p>
</section>
</main>
<footer class="site-footer">
<div class="container">
<p class="muted">© 2025 Gambler. I AM NOT RESPONSIBLE FOR ANY GAMBLING ADDICTIONS </p>
</div>
</footer>
</body>
</html>