diff --git a/src/core/message_client.py b/src/core/message_client.py index 17c3fa3..a9f38a7 100644 --- a/src/core/message_client.py +++ b/src/core/message_client.py @@ -5,7 +5,7 @@ class MessageClient: def __init__(self): self.credentials = pika.PlainCredentials('bot', 'xiaomi@123') self.connection = pika.BlockingConnection( - pika.ConnectionParameters('45.89.233.249', 5672, '/', credentials=self.credentials)) + pika.ConnectionParameters('mq.stupidpz.com', 5672, '/', credentials=self.credentials)) self.channel = self.connection.channel() self.channel.queue_declare(queue='message_queue') diff --git a/src/core/message_server.py b/src/core/message_server.py index daec8f6..1f3f8ce 100644 --- a/src/core/message_server.py +++ b/src/core/message_server.py @@ -34,7 +34,7 @@ class MessageServer: def __init__(self): self.credentials = pika.PlainCredentials('bot', 'xiaom@i123') self.connection = pika.BlockingConnection( - pika.ConnectionParameters('45.89.233.249', 5672, '/', credentials=self.credentials)) + pika.ConnectionParameters('mq.stupidpz.com', 5672, '/', credentials=self.credentials)) self.channel = self.connection.channel() self.channel.queue_declare(queue='message_queue')