24 lines
757 B
Python
24 lines
757 B
Python
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"
|
|
|
|
#users authorized to use special commands
|
|
admins = ['BOTOWNER',]
|
|
|
|
# create bot instance
|
|
bot = ollamarama(server, username, password, channels, personality, admins)
|
|
|
|
# run main function loop
|
|
asyncio.get_event_loop().run_until_complete(bot.main()) |