forked from yagich/potomark-bot-rb
		
	
			
				
					
						
					
					6a02eeb05fa8b4c437a9972a9d8fc5f58f8418aa
				
			
			
		
	potomark is a simple bookmarking and pinning discord bot.
there's no configuration besides a .env file with two keys:
- the bot's token 
DISCORD_TOKEN, - channel id for a sentence game 
SENTENCE_CHANNEL. if you don't want to enable the sentence game, set the key to-1. 
why?
because we needed a tiny, self hostable bot to remember things of importance for our equally tiny discord server.
what it do?
- DMs a user a link to any message they react with 🔖 to (tip: you can change the 
BOOKMARK_EMOJIconstant inbot.rbto any built-in emoji). this also sends part of the message for quick access, - lets users pin messages to the channel by reacting with 📌 on that message (change 
PIN_EMOJIto change the emoji). if there are no more of that emoji reactions on the message, it gets unpinned. - lets users make sentences one word (or more) at a time in 
SENTENCE_CHANNEL. to finish a sentence, send either of these as a message:?,!,.,...,?! 
how?
requires ruby >= 3.0 and bundler >= 2.3.19. the only two dependencies are dotenv and discordrb, as specified in the Gemfile.
quick setup:
$ git clone https://git.poto.cafe/yagich/potomark-bot-rb.git && cd potomark-bot-rb
$ echo 'DISCORD_TOKEN=YOUR.DISCORD.TOKEN.HERE' > .env
$ echo 'SENTENCE_CHANNEL=SENTENCE_GAME_CHANNEL_ID' >> .env
$ bundle install
$ ruby bot.rb
license?
the full license text is as follows:
you may not use this code for any purpose.
Description
				almost-zero-config, simple, self-hostable bookmarker bot written in ruby, made for the poto cafe discord
						
						
						
					Languages
				
				
								
								
									Ruby
								
								100%