Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t-900-a/gemini-fortune-bot
Fortune teller machine that accepts Monero
https://github.com/t-900-a/gemini-fortune-bot
Last synced: 1 day ago
JSON representation
Fortune teller machine that accepts Monero
- Host: GitHub
- URL: https://github.com/t-900-a/gemini-fortune-bot
- Owner: t-900-a
- License: other
- Created: 2021-03-21T20:16:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T22:55:39.000Z (almost 4 years ago)
- Last Synced: 2024-11-25T19:43:53.011Z (2 months ago)
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-gemini - Fortune Teller Bot - Generates a fortune gmi file, gemlog/index.gmi, and atom.xml every time the bot is executed (Bots / Syntax Highlighting)
README
# Gemini Fortune Bot
```
:=+*#######**+-.
.:-=#%%%%%%%%%%%%%%#%#+=-:.
.=+*********++*+*=*++*#*####*##*=.
.+************+==*+--==#*#******####+.
+#***####*##*+%%==+==#%=**##*##*##%%#*-
.#*#####*##*##+*%=+==-=++####%##########=
:*#**#####%%%%%=-=+%:=-=#%%%%%###%%#%##%%-
.***#####%%%%%%%%%%#*#%%%%%%%%%%%#*######%*
*##*###%%%%%#**#%#+*#*++#%##*#%%%%%**#**##+
:####%#%%%#=::::=+========+=::::=#%%%#%**##-
*%#%%#%%*:::--==============--:::*%%#%%*#*
*#%%#%%%:-=###%%#*++===+*#%%##*=-:%%%*%%*#
*#%%%%%=:==++++*#%%#--#%%%*++++==-=%%%%#*=
*%%%%+=::-+:..-.:#*-:::+#:.-..:+=::+*%%%%.
+%%==:::::::-+#%%+::--::=#%%+=:::::::+=%=
. ::=:-:::::======::-:::-=====:::::--+-- .
:-*####+-:::::::======::-:::-=====-::::---+*##**--
.=**%%%%@:-+.:::======--:+=:--======::::*-.%%%%%**=.
=#**#%%#%#==*+::-======+##%###+======-::=*+=#%#%%#*#*=
-*#**##***==++-::=====-==+=%%=+==-=====::-*=+****###***-
-********-.*%*-=:====#%%#%%%#%%#%%#+===:==*%@**********=
:**#***#**.=++%#=*+=-+#%%%%%%%%%%%%#+-==*=#%%%#***#***#**:
.**#*******:%#:%%+=##--%#--=+**+=--*%=-*#++%%%%%********#**:
:*#*#*******+@+.%%%#*%#+##=#%%%%%@#=***%#*#%%%%%%#*******###*.
*#*#####****+%##%%%-%%%#%@::=+%%*=::#%#%%%=@%%%%%*******###*#*.
+*###%###%#***%%%%%:#%%%%+:++%%%%++:+%%%%#-%%%%%***#%###%###**
:-:++*#%%%%##***#%#=+#%%%--+%%%%%%+==%%%*::#%#***#%%%%%#*=+:-:
--+#%%%%%##**#+-:#%%%%%%%%%%%%%%%%+:::***##%%%%%#+--
:=+%%#%%%%%%#*=:::+%%%%%%%%%%%%%%-::::+#%%%%%%#%%#=.
.*%%%##%#%%%%#%#*=:::-*%%%%%%%%%%#-:::::*%%%%#%##%%%%%*=
+*#%%%%%***#%%%##*-:::-*@%%%%%%%%-::::++*%#***%%%%%%%%%%%.
.:-+#%#*###%%%%%#*%%%%#*-:::=+%%%%%%#=::::+%%#*%%#%%%%%%%%%%%%%*=:.
.=++##****##**%#*%%%%####%%%#*::::=+@%%%%=-::+#%%#*#%%%%%%%%#%%%%%%%%%##**+==:
-*#%%########%%****##%%%%%**##%%*:.:==*%%%==::#%%**#%%%%%%####%%%%%%%%%%######*#*=
=##%##*###**##%%%#*****%%%%%%##%%#+::-==+*===+*##%%#%%%%%*#**##%%%%%%%%#%%%####%#*#+
.#%%#***####-+#+#%%%#***##*+%++#-+*%=:.=====.#+*##%=*=#%%#*##*%%%%%%%%%%-%%%%###*%%#*+
.#*%##*#%####:++*+%+%====*#.#+.%-+-#+-.:-=== #=*#%--#=*+=+-==*++#.#++#** #####***##%%#
=###*#*######=:=*++:@:-=-##+.=:-++ +==-+.=+* =:-#%=:%--:%=:+ =+-*:*:++ % ##***#****%%@.
-*##*##*#%%#%++#+*%+*++#%##*=***%%=***+#+#%#=*++%%@*=-*=**+*+*#*#+%++#++=%%%%#####*#%%.
.*#**#%#%#%%#%%%%%%%%%%%%%#*#***#%%%*%#%%%%%*#@%%%#*##*#%%%%%%%%%%%%##%##%%%%*#**#**%+
:*##%%%####%%%%##%#%%%%%%%%#***##%###%%#%%##%%%%#***##%%%%%%%%%%%##%%#*##*#%#######%:
:=#%%##%%%%%%%*###%%%%%%%%#***##%%%%%%%%%%%#***##%%%%%%%%%%###%%%%%%##*#%%###%*=:
.:-=+#%%##*%###%%#%%%%%%%##**#%%%%%%%%#**#%#%%%%%%%%%####%%#%%%%%%%##+-:::.
.....:--+***#%%%#%%%%%**###%%##****#%%%%%%#%%#######*+===+=-.
:-==+*******+++***#**=--------:..```
## Intro
This bot acts as a `fortune teller machine` similar to Zoltar. If configured correctly, the bot can provide a user with a fortune after a transaction of any size is sent to the bots cryptocurrency address.
The fortune manifests itself as a gemlog on a [Gemini website](https://gemini.circumlunar.space/) and within the associated ATOM feed.
## Installation
git clone https://github.com/t-900-a/gemini-fortune-bot
go build .A program called `gemini-fortune-bot` will end up in your `current` directory.
## Usage
gemini-fortune-bot [/path/to/fortune/cookie/file] [website uri] [tx hash] [payment uri] [payment view key]
fortune -h|--helpIf you don't specify a fortune cookie file path (see below), _fortune_
defaults to the contents of the `FORTUNE_FILE` environment variable. If
neither the argument nor the `FORTUNE_FILE` variable is present, _fortune_
aborts.For the bot to run only after a small payment has been made see below:
monero-wallet-rpc --wallet-file ~/mywallet --prompt-for-password \
--tx-notify "/usr/bin/gemini-fortune-bot /var/fortunes/fortunes monero:donate.getmonero.org %s"## Fortune Cookie File Format
A fortune cookie file is a text file full of quotes. The format is simple:
The file consists of paragraphs separated by lines containing a single '%'
character. For example::A little caution outflanks a large cavalry.
-- Bismarck
%
A little retrospection shows that although many fine, useful software
systems have been designed by committees and built as part of multipart
projects, those software systems that have excited passionate fans are
those that are the products of one or a few designing minds, great
designers. Consider Unix, APL, Pascal, Modula, the Smalltalk interface,
even Fortran; and contrast them with Cobol, PL/I, Algol, MVS/370, and
MS-DOS.
-- Fred Brooks, Jr.
%
A man is not old until regrets take the place of dreams.
-- John BarrymoreYou're more than welcome to _this_ fortune cookie file. It's over here:
.## License and Copyright
See the accompanying License file.