fixed everything

This commit is contained in:
sose 2021-05-02 04:09:49 +00:00
parent ab27c39c73
commit 1845c7105b
6 changed files with 51 additions and 41 deletions

View File

@ -1 +1 @@
0 9

View File

@ -0,0 +1,32 @@
debate
fax
fascism
art
disgust
authority
volunteering
swan's-down
platina
baba ghanoush
alpha taxonomy
cabinet making
harikari
sulphurous acid
nausea
base
stock
divining
wee
immunisation
honor
magick
scrolling
dick
fire
guacamole
compare
flatus
goss
draughts
body
autostop

View File

@ -1 +1 @@
0 9

View File

@ -23,10 +23,7 @@ name-dropping
hying hying
necking necking
copper copper
fascism
goss
head head
guacamole
auburn auburn
rhubarb rhubarb rhubarb rhubarb rhubarb rhubarb
aethyr aethyr
@ -70,25 +67,21 @@ het
beer beer
outgassing outgassing
cunt cunt
dick
priestesshood priestesshood
channa dahl channa dahl
wiretapping wiretapping
velocity velocity
technology technology
solomongundy solomongundy
disgust
balderdash balderdash
bullshit bullshit
lead lead
racewalking racewalking
fire
feed feed
sea-sickness sea-sickness
bussing bussing
busing busing
handy-dandy handy-dandy
cabinet making
asafetida asafetida
chutzpa chutzpa
gas gas
@ -104,7 +97,6 @@ science
gallows humour gallows humour
jerk jerk
grammar grammar
harikari
overwintering overwintering
camelcase camelcase
cutch cutch
@ -120,7 +112,6 @@ translation
radar radar
existence existence
air air
art
string string
change change
hara-kiri hara-kiri
@ -145,13 +136,10 @@ hamburger
tom tom
ocean ocean
pasta pasta
fax
raj raj
honor
plaster plaster
imprinting imprinting
railroading railroading
compare
nano nano
media media
data data
@ -160,12 +148,10 @@ beef
sag sag
quicksilvering quicksilvering
paralinguistics paralinguistics
stock
war war
counseling counseling
Chinese Chinese
boot boot
body
sleep sleep
interest interest
wind wind
@ -179,7 +165,6 @@ nature
shit shit
bronze bronze
pull pull
volunteering
note note
information information
neon neon
@ -229,7 +214,6 @@ satellite
cargo cargo
slap slap
beseeming beseeming
platina
poppycock poppycock
work work
first first
@ -245,7 +229,6 @@ sulphation
coat coat
draining draining
want want
divining
ruin ruin
rook rook
pop pop
@ -271,7 +254,6 @@ graham
muff-diving muff-diving
silence silence
oregano oregano
autostop
smoking smoking
prestige prestige
slip slip
@ -301,7 +283,6 @@ leukæmia
difference difference
leucaemia leucaemia
leucæmia leucæmia
authority
power power
pig pig
logic logic
@ -314,7 +295,6 @@ liquor
cruor cruor
cannabis cannabis
cunnilingus cunnilingus
flatus
valor valor
cassia cassia
government government
@ -323,8 +303,6 @@ Greek
gobbledygook gobbledygook
voice mail voice mail
d-amphetamine d-amphetamine
alpha taxonomy
wee
pasteurization pasteurization
type type
waste waste
@ -380,19 +358,16 @@ character
odium odium
opium opium
terror terror
baba ghanoush
onyx onyx
inertia inertia
imperium imperium
unemployment unemployment
metadata metadata
pollen pollen
immunisation
collation collation
spalt spalt
yerba buena yerba buena
seventh heaven seventh heaven
magick
ahinsa ahinsa
tick-tack-toe tick-tack-toe
tee ball tee ball
@ -406,21 +381,16 @@ pizza
scanability scanability
chance chance
balance balance
base
single-phasing single-phasing
rigamarole rigamarole
scampering scampering
propaganda propaganda
debate
swan's-down
swan's down swan's down
cross talk cross talk
imperative imperative
freethought freethought
conching conching
micronization micronization
draughts
scrolling
pain pain
pot pot
suicide suicide
@ -438,7 +408,6 @@ trahison
ronde ronde
balsamico balsamico
macchia macchia
nausea
bile bile
anemia anemia
neu neu
@ -486,7 +455,6 @@ kalium
jujutsu jujutsu
hyponatraemia hyponatraemia
thiosulphuric acid thiosulphuric acid
sulphurous acid
sod sod
slop slop
fervor fervor

22
mcsb.py
View File

@ -1,10 +1,12 @@
#!/usr/bin/env python #!/usr/bin/env python3
import requests import requests
import time import time
import json import json
import pint import pint
import random import random
from typing import Optional from typing import Optional
from mastodon import Mastodon
ureg = pint.UnitRegistry() ureg = pint.UnitRegistry()
max_food_weight = 100000 # in mg max_food_weight = 100000 # in mg
max_food_length = 1000 # in mm max_food_length = 1000 # in mm
@ -36,6 +38,14 @@ mastodon = Mastodon(
api_base_url = 'https://botsin.space' api_base_url = 'https://botsin.space'
) )
def sleep(seconds):
for i in range(seconds):
try:
time.sleep(1)
except KeyboardInterrupt:
print("killed")
break
def get_more_words(): def get_more_words():
# we're doing these 500 at a time so we can get some semblance of # we're doing these 500 at a time so we can get some semblance of
# randomness # randomness
@ -121,11 +131,12 @@ def get_a_food_action():
amount = random.randrange(1, max_food_length) * ureg.millimeter amount = random.randrange(1, max_food_length) * ureg.millimeter
amount = amount.to(ureg("".join(unit.strip().split()[1]))) amount = amount.to(ureg("".join(unit.strip().split()[1])))
amount = ureg.Quantity(round(amount.m, 2), amount.u)
with open("./food_item_offset", "w") as food_item_offset_file: with open("./food_item_offset", "w") as food_item_offset_file:
food_item_offset_file.write(str(int(food_item_offset) + 1)) food_item_offset_file.write(str(int(food_item_offset) + 1))
return("eating " + str(amount).replace("_", " ") + "s of " + food_item) return("eating a " + str(amount).replace("_", " ") + " " + food_item)
def get_an_action(): def get_an_action():
action_offset: str action_offset: str
@ -248,7 +259,6 @@ def get_a_noun():
word = word.strip() word = word.strip()
print("chose " + word) print("chose " + word)
return word return word
print(get_a_noun())
while True: while True:
random_number: int = random.randint(0, 2) random_number: int = random.randint(0, 2)
@ -260,14 +270,14 @@ while True:
noun1 = get_a_noun() noun1 = get_a_noun()
noun2 = get_a_noun() noun2 = get_a_noun()
mastodon.toot(meme.format(action, noun1, noun2)) mastodon.toot(meme.format(action, noun1, noun2))
print("tooted " + meme.format(action, noun1, noun2)) print("tooted " + meme.format(action, noun1, noun2).lower())
elif random_number == 1: elif random_number == 1:
action = get_a_food_action() action = get_a_food_action()
if action is None: if action is None:
continue continue
noun1 = get_a_noun() noun1 = get_a_noun()
noun2 = get_a_noun() noun2 = get_a_noun()
mastodon.toot(meme.format(action, noun1, noun2)) mastodon.toot(meme.format(action, noun1, noun2).lower())
print("tooted " + meme.format(action, noun1, noun2)) print("tooted " + meme.format(action, noun1, noun2))
time.sleep(2600) sleep(43200) # toot twice a day

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import requests import requests
import json import json
def get_more_words(): def get_more_words():