rename commands the way they are on the server
This commit is contained in:
parent
342d10fe42
commit
00bc656800
4 changed files with 0 additions and 0 deletions
28
proclaim
Executable file
28
proclaim
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
# make username uppercase
|
||||
username=$(echo "$USER" | tr '[:lower:]' '[:upper:]')
|
||||
declare prompt
|
||||
|
||||
makeSlug () {
|
||||
# make time and date
|
||||
time=$(TZ=America/New_York date +%I:%M%p)
|
||||
date=$(TZ=America/New_York date +%m/%d)
|
||||
|
||||
# make name/time string
|
||||
prompt="${username}-${date}-${time}"
|
||||
}
|
||||
|
||||
# enter bunkchat mode (clear the screen)
|
||||
clear
|
||||
|
||||
while true
|
||||
do
|
||||
figlet -f future proclaim - bunkchat
|
||||
echo "You may view old chat with 'scry', heathen."
|
||||
echo "-------------------------------------------"
|
||||
read -r -p "speak to the server: " text
|
||||
makeSlug
|
||||
echo "${prompt}: $text" >> /srv/bunkchat.txt
|
||||
clear
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue