Skip to content

Commit

Permalink
Revert "chore: avoid-dukun-term" (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan authored Oct 16, 2023
1 parent 563e050 commit 0970fd1
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions docs/PRIVACY_POLICY.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Even if there is an error happened, there should be a message of:
> uh oh, something went wrong. ask the devs to check their logs.
On some commands, we collect just your Telegram user ID, username (if any), first name (if any), last name (if any),
and group chat ID to be able to process some commands like `/suhu`, `/snap`, and `/quiz`.
and group chat ID to be able to process some commands like `/dukun`, `/snap`, and `/quiz`.

Those data is open for public via the Telegram API. It's not exposing your password or
any credentials-related information. Even your phone number!
Expand All @@ -35,7 +35,7 @@ For joining data, it's for our analytics, we still want to keep track which grou
Only one person in the Teknologi Umum Bot has the access to this data.

For errors data, it's only for bug fix, and pin pointing where the error came from.
`/suhu` command needs your ID and name to indicate who's who.
`/dukun` command needs your ID and name to indicate who's who.
That's it.

## How do we protect your information?
Expand Down
14 changes: 7 additions & 7 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In this document you will find how to use Teknologi Umum Bot. Its' commands and
- 💙 [`/quiz`](#-quiz)
- 🌏📬 [`/covid`](#-covid)
- 🌏📬 [`/devread`](#-devread)
- 🌏 [`/suhu`](#-suhu)
- 🌏 [`/dukun`](#-dukun)
- 🌏📬 [`/eval`](#-eval)
- 🌏📬 [`/search`](#-search)
- 🌏📬 [`/snap`](#-snap)
Expand Down Expand Up @@ -66,21 +66,21 @@ Will send you a collection of developer articles and posts around a certain topi

<img src="../.github/images/devread.jpg" width="300px" />

## `/suhu`
## `/dukun`

Suhu is an Indonesian term for shaman or sorcerer.
Dukun is an Indonesian term for shaman or sorcerer.
It's kind of a joke for specifying those who could answer a given problem without any details about it whatsoever.

Not available on private chats.

Reply to other person's message with `/suhu +<point>` or `/suhu -<point>` to give them a suhu point.
Reply to other person's message with `/dukun +<point>` or `/dukun -<point>` to give them a dukun point.
Maximum point given for a person is +10 and -10.

Be careful of using this, it's a competitive life.

- `/suhu` - Shows suhu leaderboard
- `/suhu +<point>` - Increment someone's suhu point
- `/suhu -<point>` - Decrement someone's suhu point
- `/dukun` - Shows dukun leaderboard
- `/dukun +<point>` - Increment someone's dukun point
- `/dukun -<point>` - Decrement someone's dukun point

<img src="../.github/images/dukun-leaderboard.jpg" width="300px" />
<img src="../.github/images/dukun.jpg" width="300px" />
Expand Down
16 changes: 8 additions & 8 deletions docs/USAGE_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pada dokumen ini, kamu akan menemukan cara menggunakan Teknologi Umum Bot. Comma
- 💙 [`/quiz`](#-quiz)
- 🌏📬 [`/covid`](#-covid)
- 🌏📬 [`/devread`](#-devread)
- 🌏 [`/suhu`](#-suhu)
- 🌏 [`/dukun`](#-dukun)
- 🌏📬 [`/eval`](#-eval)
- 🌏📬 [`/search`](#-search)
- 🌏📬 [`/snap`](#-snap)
Expand Down Expand Up @@ -66,23 +66,23 @@ Akan mengirimkan kumpulan artikel atau postingan dari developer terkait topik te

<img src="../.github/images/devread.jpg" width="300px" />

## `/suhu`
## `/dukun`

Semacam bercandaan untuk mereka yang dapat menjawab suatu masalah tanpa penjelasan lebih lanjut tentang masalah tersebut.

Tidak tersedia di pesan privat.

Balas ke pesan orang lain dengan `/suhu +<poin>` atau `/suhu -<poin>` untuk memberikan mereka poin suhu.
Balas ke pesan orang lain dengan `/dukun +<poin>` atau `/dukun -<poin>` untuk memberikan mereka poin dukun.
Poin maksimum yang dapat diberikan kepada seseorang adalah +10 dan -10.

Hati-hati menggunakan ini, hidup itu kompetitif.

- `/suhu` - Menunjukan papan peringkat suhu
- `/suhu +<poin>` - Menambah poin suhu seseorang
- `/suhu -<poin>` - mengurangi poin suhu seseorang
- `/dukun` - Menunjukan papan peringkat dukun
- `/dukun +<poin>` - Menambah poin dukun seseorang
- `/dukun -<poin>` - mengurangi poin dukun seseorang

<img src="../.github/images/suhu-leaderboard.jpg" width="300px" />
<img src="../.github/images/suhu.jpg" width="300px" />
<img src="../.github/images/dukun-leaderboard.jpg" width="300px" />
<img src="../.github/images/dukun.jpg" width="300px" />

## `/eval`

Expand Down
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as evalBot from "#services/eval/index.js";
import * as blog from "#services/devread/index.js";
import * as quiz from "#services/quiz/index.js";
import * as search from "#services/search/index.js";
import * as suhu from "#services/suhu/index.js";
import * as dukun from "#services/dukun/index.js";
import * as laodeai from "#services/laodeai/index.js";
import * as analytics from "#services/analytics/index.js";
import * as news from "#services/news/index.js";
Expand Down Expand Up @@ -56,7 +56,7 @@ async function main() {
blog.register(bot, cache),
quiz.register(bot, mongo, cache),
search.register(bot, mongo),
suhu.register(bot, mongo, cache),
dukun.register(bot, mongo, cache),
laodeai.register(bot),
analytics.register(bot, mongo),
news.register(bot),
Expand Down
10 changes: 10 additions & 0 deletions src/services/dukun/dukun.template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{#expect dukun, others}}

<b>Paguyuban Dukun Jason Wihardja</b>\n\n

{{#each dukun as d, index}}
{{index + 1}}. {{ [d.firstName, d.lastName].join(' ') }} ({{ d.points }} poin)\n
{{/each}}
{{#if others > 0 }}
dan {{ others }} dukun lainnya..
{{/if}}
Loading

0 comments on commit 0970fd1

Please sign in to comment.