24 lines
757 B
Python
Raw Normal View History

2023-12-15 00:55:57 -05:00
import asyncio
from ollamarama import ollamarama
server = "https://matrix.org" #change if using different homeserver
username = "@USERNAME:SERVER.TLD"
password = "PASSWORD"
channels = ["#channel1:SERVER.TLD",
"#channel2:SERVER.TLD",
"#channel3:SERVER.TLD",
"!ExAmPleOfApRivAtErOoM:SERVER.TLD", ] #enter the channels you want it to join here
personality = "a helpful and thorough AI assistant who provides accurate and detailed answers without being too verbose"
2023-12-20 21:48:51 -05:00
#users authorized to use special commands
admins = ['BOTOWNER',]
2023-12-15 00:55:57 -05:00
# create bot instance
2023-12-20 21:48:51 -05:00
bot = ollamarama(server, username, password, channels, personality, admins)
2023-12-15 00:55:57 -05:00
# run main function loop
asyncio.get_event_loop().run_until_complete(bot.main())