Skip to content

Commit

Permalink
Bashbot Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gnadelwartz committed Aug 15, 2020
1 parent 99217c4 commit 25a33b3
Show file tree
Hide file tree
Showing 59 changed files with 71 additions and 70 deletions.
2 changes: 1 addition & 1 deletion README.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,6 @@ <h3>Blocked by telegram?</h3>
<p>@Gnadelwartz</p>
<h2>That's it!</h2>
<p>If you feel that there's something missing or if you found a bug, feel free to submit a pull request!</p>
<h4>$$VERSION$$ 0.99-2-gacf9d84</h4>
<h4>$$VERSION$$ v1.0-0-g99217c4</h4>
</body>
</html>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,4 @@ bashbotBlockRecover() {

If you feel that there's something missing or if you found a bug, feel free to submit a pull request!

#### $$VERSION$$ 0.99-2-gacf9d84
#### $$VERSION$$ v1.0-0-g99217c4
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,4 @@ wait
If you feel that there's something missing or if you found a bug, feel free to
submit a pull request!

#### $$VERSION$$ 0.99-2-gacf9d84
#### $$VERSION$$ v1.0-0-g99217c4
2 changes: 1 addition & 1 deletion addons/antiFlood.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# this addon counts how many files, e.g. stickers, are sent to
# a chat and takes actions if threshold is reached
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# used events:
#
Expand Down
2 changes: 1 addition & 1 deletion addons/example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Addons can register to bashbot events at startup
# by providing their name and a callback per event
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
#
# If an event occurs each registered event function is called.
#
Expand Down
2 changes: 1 addition & 1 deletion bashbot.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# description: Start or stop telegram-bash-bot
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
# shellcheck disable=SC2009
# shellcheck disable=SC2181

Expand Down
2 changes: 1 addition & 1 deletion bashbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-10-gb9c8dc0
#### $$VERSION$$ v1.0-0-g99217c4
#
# Exit Codes:
# - 0 success (hopefully)
Expand Down
2 changes: 1 addition & 1 deletion commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-5-gaec7345
#### $$VERSION$$ v1.0-0-g99217c4
#

# adjust your language setting here, e.g.when run from other user or cron.
Expand Down
2 changes: 1 addition & 1 deletion dev/all-tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# this has to run once atfer git clone
# and every time we create new hooks
#### $$VERSION$$ 0.99-8-g6011444
#### $$VERSION$$ v1.0-0-g99217c4

# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
Expand Down
2 changes: 1 addition & 1 deletion dev/git-add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# works together with git pre-push.sh and ADD all changed files since last push

#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
Expand Down
2 changes: 1 addition & 1 deletion dev/hooks/pre-commit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.99-13-g6a6410e
#### $$VERSION$$ v1.0-0-g99217c4

############
# NOTE: you MUST run install-hooks.sh again when updating this file!
Expand Down
2 changes: 1 addition & 1 deletion dev/hooks/pre-push.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

############
# NOTE: you MUST run install-hooks.sh again when updating this file!
Expand Down
2 changes: 1 addition & 1 deletion dev/install-hooks.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# this has to run once atfer git clone
# and every time we create new hooks
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
Expand Down
2 changes: 1 addition & 1 deletion dev/make-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# file: make-distribution.sh
# creates files and arcchives to dirtribute bashbot
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
Expand Down
2 changes: 1 addition & 1 deletion dev/make-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# If you your bot is finished you can use make-standalone.sh to create the
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
Expand Down
2 changes: 1 addition & 1 deletion dev/shellcheck.files
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# list of additional files to check from shellcheck
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
bashbot.rc
mycommands.sh.clean
2 changes: 1 addition & 1 deletion dev/version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
# shellcheck disable=SC2016
#
# Easy Versioning in git:
Expand Down
2 changes: 1 addition & 1 deletion doc/0_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,5 @@ The old format is supported for backward compatibility, but may fail for corner

#### [Next Create Bot](1_firstbot.md)

#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

2 changes: 1 addition & 1 deletion doc/1_firstbot.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ group. This step is up to you actually.
#### [Prev Installation](0_install.md)
#### [Next Getting started](2_usage.md)

#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

2 changes: 1 addition & 1 deletion doc/2_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,5 +283,5 @@ send_action "${CHAT[ID]}" "action"
#### [Prev Create Bot](1_firstbot.md)
#### [Next Advanced Usage](3_advanced.md)

#### $$VERSION$$ 0.99-1-g3daf84d
#### $$VERSION$$ v1.0-0-g99217c4

2 changes: 1 addition & 1 deletion doc/3_advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,5 @@ Note: If you disable automatic retry, se above, you disable also connection prob
#### [Prev Getting started](2_usage.md)
#### [Next Expert Use](4_expert.md)
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
2 changes: 1 addition & 1 deletion doc/4_expert.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,5 @@ for every poll until the maximum of BASHBOT_SLEEP ms.
#### [Prev Advanced Use](3_advanced.md)
#### [Next Best Practice](5_practice.md)

#### $$VERSION$$ 0.99-1-g3daf84d
#### $$VERSION$$ v1.0-0-g99217c4

2 changes: 1 addition & 1 deletion doc/5_practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ The second warning is about an unused variable, this is true because in our exam
#### [Prev Best Practice](5_practice.md)
#### [Next Functions Reference](6_reference.md)
#### $$VERSION$$ 0.99-1-g3daf84d
#### $$VERSION$$ v1.0-0-g99217c4
2 changes: 1 addition & 1 deletion doc/6_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1049,5 +1049,5 @@ The name of your bot is available as bash variable "$ME", there is no need to ca
#### [Prev Best Practice](5_practice.md)
#### [Next Notes for Developers](7_develop.md)
#### $$VERSION$$ 0.99-17-g9d7f145
#### $$VERSION$$ v1.0-0-g99217c4
2 changes: 1 addition & 1 deletion doc/7_develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,5 +347,5 @@ fi
#### [Prev Function Reference](6_reference.md)
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ convert existing bots.
**jsonDB-keybords** contains a stripped down real world example from my bot showing the usage of jsonDB to store and retrieve values
plus use of keyboards in private chats. It's an extended version of mycommands.sh.dist. Messages and help are in german.

#### $$VERSION$$ 0.99-13-g6a6410e
#### $$VERSION$$ v1.0-0-g99217c4


2 changes: 1 addition & 1 deletion examples/background-scripts/run_diskusage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/background-scripts/run_filecontent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# file: run_filename
# background job to display content of all new files in WATCHDIR
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/background-scripts/run_filename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# file: run_filename
# background job to display all new files in WATCHDIR
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/background-scripts/run_notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/bash2env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)

#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# adjust your language setting here
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment
Expand Down
2 changes: 1 addition & 1 deletion examples/bashbot-multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# file. multibot.sh
# description: run multiple telegram bots from one installation
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

if [ "${2}" = "" ] || [ "${2}" = "-h" ]; then
echo "Usage: $0 botname command"
Expand Down
2 changes: 1 addition & 1 deletion examples/bashbot.cron
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4


SHELL=/bin/sh
Expand Down
2 changes: 1 addition & 1 deletion examples/calc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/jsonDB-keyboard/mycommands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# files: mycommands.sh.dist
# copy to mycommands.sh and add all your commands and functions here ...
#
#### $$VERSION$$ 0.99-16-gd6de66d
#### $$VERSION$$ v1.0-0-g99217c4
#
# shellcheck disable=SC2154
# shellcheck disable=SC2034
Expand Down
2 changes: 1 addition & 1 deletion examples/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/question.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

######
# parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/send-system-status/botacl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# file: botacl
# a user not listed here, will return false from 'user_is_allowed'
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
# Format:
# user:resource:chat

Expand Down
2 changes: 1 addition & 1 deletion examples/send-system-status/mycommands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# to show how you can customize bashbot by only editing mycommands.sh
# NOTE: this is not tested, simply copied from original source and reworked!
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
#
# shellcheck disable=SC2154
# shellcheck disable=SC2034
Expand Down
2 changes: 1 addition & 1 deletion modules/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
#
# will be automatically sourced from bashbot

Expand Down
2 changes: 1 addition & 1 deletion modules/answerInline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# will be automatically sourced from bashbot

Expand Down
2 changes: 1 addition & 1 deletion modules/background.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# will be automatically sourced from bashbot

Expand Down
2 changes: 1 addition & 1 deletion modules/chatMember.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4

# will be automatically sourced from bashbot

Expand Down
2 changes: 1 addition & 1 deletion modules/jsonDB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-0-g2775000
#### $$VERSION$$ v1.0-0-g99217c4
#
# source from commands.sh to use jsonDB functions
#
Expand Down
2 changes: 1 addition & 1 deletion modules/sendMessage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.99-17-g9d7f145
#### $$VERSION$$ v1.0-0-g99217c4

# will be automatically sourced from bashbot

Expand Down
Loading

0 comments on commit 25a33b3

Please sign in to comment.